Module error

Expand description

Error types and utilities.

Structs§

NoCustomErrorDeprecated
An empty value indicating that there is no custom error type associated with this server function.
ServerFnErrorEncoding
Serializes and deserializes JSON with serde_json.
ServerFnUrlError
Associates a particular server function error with the server function found at a particular path.
WrapErrorDeprecated
Wraps some error type, which may implement any of Error, Clone, or Display.

Enums§

ServerFnError
A type that can be used as the return type of the server function for easy error conversion with ? operator. This type can be replaced with any other error type that implements FromServerFnError.
ServerFnErrorErr
Type for errors that can occur when using server functions. If you need to return a custom error type from a server function, implement FromServerFnError for your custom error type.

Constants§

SERVER_FN_ERROR_HEADER
A custom header that can be used to indicate a server function returned an error.

Traits§

FromServerFnError
A trait for types that can be returned from a server function.
IntoAppError
A helper trait for converting a ServerFnErrorErr into an application-specific custom error type that implements FromServerFnError.
ViaErrorDeprecated
This trait serves as the conversion method between a variety of types and ServerFnError.