Crate tc_error

Source
Expand description

Provides common error types and associated convenience methods for TinyChain.

This crate is a part of TinyChain: http://github.com/haydnv/tinychain

Macros§

bad_gateway
Error to convey an upstream problem
bad_request
Error to indicate that the request is badly-constructed or nonsensical
conflict
Error to indicate that the request cannot be fulfilled due to a conflict with another request.
forbidden
Error to indicate that the requestor’s credentials do not authorize the request to be fulfilled
internal
A truly unexpected error, for which no handling behavior can be defined
not_found
Error to indicate that no resource exists at the requested path or key.
not_implemented
Error to indicate that a required feature is not yet implemented.
timeout
Error to indicate that the request failed to complete in the allotted time.
unauthorized
Error to indicate that the user’s credentials are missing or nonsensical.
unavailable
Error to indicate that this host is currently overloaded

Structs§

TCError
A general error description.

Enums§

ErrorKind
The category of a TCError.

Type Aliases§

TCResult
A result of type T, or a TCError