Skip to main content

Module error

Module error 

Source
Expand description

Error handling and protocol-specific error mapping.

Structs§

ErrorResponse
A generic error response that can be serialized
HttpStatusHelper
Helper wrapper used by generated HTTP handler code to map error values to HTTP status codes.
SchemaValidationError
Error type for schema validation failures.

Enums§

ErrorCode
Protocol-agnostic error code that maps to HTTP status, gRPC code, CLI exit code, etc.

Traits§

HttpStatusFallback
Fallback trait used by HttpStatusHelper when the concrete error type does not implement IntoErrorCode.
IntoErrorCode
Trait for converting errors to protocol-agnostic error codes.