Module error

Module error 

Source
Expand description

Contains error and result types for all the controllers.

Structs§

ApiErrorIssue
ApiErrorResponse
Canonical API error envelope returned for controlled application errors.
ControllerError
Represents error messages that are sent in responses. Used as the error type in ControllerError, which is used by all the controllers in the application.
OAuthErrorData

Enums§

ControllerErrorType
The type of ControllerError that occured.
ErrorMetadata
OAuthErrorCode
PkceFlowError
UnauthorizedReason
ValidationIssueCode

Constants§

MISSING_EXERCISE_TYPE_DESCRIPTION 🔒

Functions§

as_controller_error
Helper function for .map_err() chains to wrap any error as ControllerError.
missing_controller_error
Helper function for .ok_or_else() to create ControllerError on None.

Type Aliases§

ControllerResult
Used as the result types for all controllers. Only put information here that you want to be visible to users.