Skip to main content

Module error

Module error 

Source
Expand description

The error type used by pages, layouts, loaders, API routes and actions.

Structs§

Error
Framework error.

Enums§

ErrorKind

Traits§

IntoResult
Accept both T and Result<T, E> from user functions (generated code).
OrNotFound
Convert None into a 404.

Functions§

not_found
Render the nearest not-found.rs with status 404.
permanent_redirect
Permanent redirect (308, method preserved).
redirect
Temporary redirect (307, method preserved).

Type Aliases§

Result
Result alias with Error as the default error type.