Expand description
Runtime support for Conjure error types.
Conjure errors are represented by a struct implementing the ErrorType
trait. The struct’s fields are the error’s
parameters, and the trait implementation stores the remainder of the error’s information.
Modules§
- conflict
- error_
code - failed_
precondition - internal
- invalid_
argument - not_
found - permission_
denied - request_
entity_ too_ large - serializable_
error - timeout
Structs§
- Backtrace
- A backtrace associated with an
Error
. - Conflict
- A generic
CONFLICT
error. - Error
- A standard error type for network services.
- Failed
Precondition - A generic
FAILED_PRECONDITION
error. - Internal
- A generic
INTERNAL
error. - Invalid
Argument - A generic
INVALID_ARGUMENT
error. - NotFound
- A generic
NOT_FOUND
error. - Params
- A collection of error parameters, either safe or unsafe.
- Params
Iter - An iterator over the parameters of an error.
- Permission
Denied - A generic
PERMISSION_DENIED
error. - Request
Entity TooLarge - A generic
REQUEST_ENTITY_TOO_LARGE
error. - Serializable
Error - The JSON-serializable representation of an error.
- Throttle
Error - Information about a throttle error.
- Timeout
- A generic
TIMEOUT
error. - Unavailable
Error - Information about an unavailable error.
- With
Instance Id - An
ErrorType
which wraps another and overrides its instance ID.
Enums§
- Error
Code - The broad category of a Conjure error.
- Error
Kind - Information about the specific type of an
Error
.
Traits§
- Error
Type - A trait implemented by Conjure error types.
Functions§
- encode
- Encodes a Conjure error into its serialized form.