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§
- Error
Layer - A
Layerthat wraps each gRPC service to ensure every errortonic::Statuscarries structured RFC 9457 JSON details. - Error
Service - The
Serviceproduced byErrorLayer.