Module error

Source
Expand description

Generic error types ready for web servers

Macros§

err
Creates a new Box<Error>, which will be unexpected if the provided info has a server error status.

Structs§

ApiError
An RFC-7807 compatible error implementing axum’s IntoResponse
Error
This type represents an error in the service

Enums§

GenericErrorCode
Generic error codes, they’re usually not meant for the end-user
GraphQLError
GraphQL error

Traits§

MapToErr
Utility trait to map any Result<T,E> to a Result<T, Box<Error>>
OkOrErr
Utility trait to map any Option<T> to a Result<T, Box<Error>>
ResultExt
Utility trait to extend a Result

Type Aliases§

ApiResult
GraphQLResult
GraphQL Result that represents either success (Ok) or failure (Err)
Result