Skip to main content

Module util_error

Module util_error 

Source
Expand description

Contains error and result types for all the util functions.

Macros§

util_err 🔒
Create a UtilError with less boilerplate.

Structs§

UtilError
Error type used by all models. Used as the error type in UtilError, which is used by all the controllers in the application.

Enums§

SisuErrorVariant
SuotarErrorVariant
How a call to Suotar failed at the request level. Per-item failures are not errors: they come back inside a successful batch response.
UtilErrorType
The type of UtilError that occured.

Functions§

as_util_error
Helper function for .map_err() chains to wrap any error as UtilError.
missing_util_error
Helper function for .ok_or_else() to create UtilError on None.

Type Aliases§

UtilResult
Used as the result types for all utils.