Module etcd-client.error.etcd
Errors caused by etcd.
Module functions
| new (response) | Create a new EtcdError from the response. |
| ack (obj) | Acknowledge is object EtcdError. |
Module constants
| OK | Not an error; returned on success. |
| CANCELLED | The operation was cancelled, typically by the caller. |
| UNKNOWN | Unknown error. |
| INVALID_ARGUMENT | The client specified an invalid argument. |
| DEADLINE_EXCEEDED | The deadline expired before the operation could complete. |
| NOT_FOUND | Some requested entity (e.g., file or directory) was not found. |
| ALREADY_EXISTS | The entity that a client attempted to create already exists. |
| PERMISSION_DENIED | The caller does not have permission to execute the specified operation. |
| RESOURCE_EXHAUSTED | Some resource has been exhausted. |
| FAILED_PRECONDITION | The system is not in a state required for the operation's execution. |
| ABORTED | The operation was aborted, typically due to a concurrency issue. |
| OUT_OF_RANGE | The operation was attempted past the valid range. |
| UNIMPLEMENTED | The operation is not implemented or is not enabled in this service. |
| INTERNAL | Internal errors. |
| UNAVAILABLE | The service is currently unavailable. |
| DATA_LOSS | Unrecoverable data loss or corruption. |
| UNAUTHENTICATED | The request does not have valid authentication credentials. |
Module types
| EtcdError | EtcdError |
Module functions
- new (response)
-
Create a new EtcdError from the response.
Parameters:
- response
(table)
A response from etcd.
Returns:
- response
(table)
- ack (obj)
-
Acknowledge is object EtcdError.
Parameters:
- obj
(table)
An object to check.
Returns:
-
true if obj is EtcdError or false
- obj
(table)
Module constants
The gRPC codes are exported to the package level. The error codes comes from gRPC api implementation.
- OK
-
Not an error; returned on success.
- CANCELLED
-
The operation was cancelled, typically by the caller.
- UNKNOWN
-
Unknown error.
- INVALID_ARGUMENT
-
The client specified an invalid argument.
- DEADLINE_EXCEEDED
-
The deadline expired before the operation could complete.
- NOT_FOUND
-
Some requested entity (e.g., file or directory) was not found.
- ALREADY_EXISTS
-
The entity that a client attempted to create already exists.
- PERMISSION_DENIED
-
The caller does not have permission to execute the specified operation.
- RESOURCE_EXHAUSTED
-
Some resource has been exhausted.
- FAILED_PRECONDITION
-
The system is not in a state required for the operation's execution.
- ABORTED
-
The operation was aborted, typically due to a concurrency issue.
- OUT_OF_RANGE
-
The operation was attempted past the valid range.
- UNIMPLEMENTED
-
The operation is not implemented or is not enabled in this service.
- INTERNAL
-
Internal errors.
- UNAVAILABLE
-
The service is currently unavailable.
- DATA_LOSS
-
Unrecoverable data loss or corruption.
- UNAUTHENTICATED
-
The request does not have valid authentication credentials.