Skip to main content

Module error

Module error 

Source
Expand description

Framework error types that serialize to JSON responses.

Every handler in an atrg application returns Result<impl IntoResponse, AtrgError>. Errors are automatically converted to JSON with the shape:

{ "error": "<code>", "message": "<human readable>" }

Enums§

AtrgError
Unified error type for atrg handlers.

Type Aliases§

AtrgResult
Convenience alias used throughout the framework.