Skip to main content

Module errors

Module errors 

Source
Expand description

JSON-RPC 2.0 error construction for the A2A server.

Exposes JsonRpcErrorBuilder for assembling spec-compliant error envelopes, the unauthorized_response / forbidden_response helpers for auth failures, and classify_database_error for mapping repository errors onto user-facing messages.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Re-exports§

pub use jsonrpc::JsonRpcErrorBuilder;
pub use jsonrpc::classify_database_error;
pub use jsonrpc::forbidden_response;
pub use jsonrpc::unauthorized_response;

Modules§

jsonrpc
JSON-RPC 2.0 error envelope construction.