[][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

Conflict

A generic CONFLICT error.

FailedPrecondition

A generic FAILED_PRECONDITION error.

Internal

A generic INTERNAL error.

InvalidArgument

A generic INVALID_ARGUMENT error.

NotFound

A generic NOT_FOUND error.

PermissionDenied

A generic PERMISSION_DENIED error.

RequestEntityTooLarge

A generic REQUEST_ENTITY_TOO_LARGE error.

SerializableError

The JSON-serializable representation of an error.

Timeout

A generic TIMEOUT error.

WithInstanceId

An ErrorType which wraps another and overrides its instance ID.

Enums

ErrorCode

The broad category of a Conjure error.

Traits

ErrorType

A trait implemented by Conjure error types.

Functions

encode

Encodes a Conjure error into its serialized form.