Skip to main content

Module error_layer

Module error_layer 

Source
Expand description

ErrorLayer — auto-enriches gRPC error responses with structured RFC 9457 details. Tower layer that intercepts gRPC responses and enriches error statuses with structured rskit_errors::AppError details.

Applied automatically by GrpcServerBuilder so service implementations can use rskit_grpc::app_error_to_status and the canonical RFC 9457 JSON error body is always present in the status details.

Structs§

ErrorLayer
A Layer that wraps each gRPC service to ensure every error tonic::Status carries structured RFC 9457 JSON details.
ErrorService
The Service produced by ErrorLayer.