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

CasePayloadDescription
no-such-storeThe host does not recognize the store identifier requested.
access-deniedThe requesting component does not have access to the specified store (which may or may not exist).
invalid-argumentThe request was malformed or self-contradictory, e.g. a cas.swap whose cas-options sets no precondition.
precondition-failedA conditional operation did not meet its precondition, e.g. a set with if-not-exists against a key that already exists.
timeoutThe operation did not complete within the host- or backend-imposed time limit.
store-unavailableThe store is currently unreachable or otherwise unavailable. The operation may succeed if retried later.
quota-exceededThe operation was rejected because a quota or rate limit was exceeded.
otherstringSome other implementation-specific error has occurred (e.g. I/O). Used for backend-specific failures that do not map to a named case above.