[][src]Crate conjure_error

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.

FailedPrecondition

A generic FAILED_PRECONDITION error.

Internal

A generic INTERNAL error.

InvalidArgument

A generic INVALID_ARGUMENT error.

NotFound

A generic NOT_FOUND error.

Params

A collection of error parameters, either safe or unsafe.

ParamsIter

An iterator over the parameters of an error.

PermissionDenied

A generic PERMISSION_DENIED error.

RequestEntityTooLarge

A generic REQUEST_ENTITY_TOO_LARGE error.

SerializableError

The JSON-serializable representation of an error.

ThrottleError

Information about a throttle error.

Timeout

A generic TIMEOUT error.

UnavailableError

Information about an unavailable error.

WithInstanceId

An ErrorType which wraps another and overrides its instance ID.

Enums

ErrorCode

The broad category of a Conjure error.

ErrorKind

Information about the specific type of an Error.

Traits

ErrorType

A trait implemented by Conjure error types.

Functions

encode

Encodes a Conjure error into its serialized form.