Skip to main content

systemprompt_agent/services/a2a_server/errors/
mod.rs

1//! JSON-RPC 2.0 error construction for the A2A server.
2//!
3//! Exposes [`JsonRpcErrorBuilder`] for assembling spec-compliant error
4//! envelopes, the [`unauthorized_response`] / [`forbidden_response`] helpers
5//! for auth failures, and [`classify_database_error`] for mapping repository
6//! errors onto user-facing messages.
7//!
8//! Copyright (c) systemprompt.io — Business Source License 1.1.
9//! See <https://systemprompt.io> for licensing details.
10
11pub mod jsonrpc;
12
13pub use jsonrpc::{
14    JsonRpcErrorBuilder, classify_database_error, forbidden_response, unauthorized_response,
15};