Skip to main content

Module error

Module error 

Source
Expand description

Unified error type for the framework.

Handlers and middleware return Result<Response, Error>. The router converts any unhandled Err into an HTTP response as a final safety net.

Error::Internal(msg) keeps the full message for logging (via [Display] and Error::message) but sanitizes it to a generic "Internal Server Error" body when converted into an HTTP response.

Enums§

Error

Functions§

resolve
Convert a handler result into a definite Response.