Variant
error
The set of errors which may be raised by functions in this package.
variant error {
no-such-store,
access-denied,
invalid-argument,
precondition-failed,
timeout,
store-unavailable,
quota-exceeded,
other(string),
}Cases
| Case | Payload | Description |
|---|---|---|
| no-such-store | — | The host does not recognize the store identifier requested. |
| access-denied | — | The requesting component does not have access to the specified store (which may or may not exist). |
| invalid-argument | — | The request was malformed or self-contradictory, e.g. a cas.swap
whose cas-options sets no precondition. |
| precondition-failed | — | A conditional operation did not meet its precondition, e.g. a set with
if-not-exists against a key that already exists. |
| timeout | — | The operation did not complete within the host- or backend-imposed time limit. |
| store-unavailable | — | The store is currently unreachable or otherwise unavailable. The operation may succeed if retried later. |
| quota-exceeded | — | The operation was rejected because a quota or rate limit was exceeded. |
| other | string | Some other implementation-specific error has occurred (e.g. I/O). Used for backend-specific failures that do not map to a named case above. |