Skip to main content

Module error

Module error 

Source
Expand description

§Error Handling Layer

This layer intercepts errors returned by the inner service and converts them into valid HTTP responses using a configured ErrorHandler.

This is crucial for returning user-friendly error messages (e.g., JSON) instead of raw server errors or dropped connections.

Structs§

ErrorLayer
A Tower middleware that handles errors from the inner service.