Expand description
Server-specific error types.
ServerError wraps lower-level errors and A2A protocol errors into a
unified enum for the server framework. Use ServerError::to_a2a_error
to convert back to a protocol-level A2aError for wire responses.
Enums§
- Server
Error - Server framework error type.
Constants§
- A2A_
RUST_ ERROR_ DOMAIN - The
ErrorInfodomainof the reasons this SDK defines, where A2A defines none (ADR 0049). - HALTED_
REASON - The
ErrorInforeasona halt refusal carries (ADR 0049); the same asa2a_protocol_types::halt::HALTED_REASON, which a caller reads it by.
Functions§
- withhold
- Withholds
e’s message and data when its code is internal; anything else is the caller’s to read, and is left as it is. - withhold_
for_ task withhold, for an executor’s failure: the log line names the task. Nothing is withheld when the handlerexposes internal errors.
Type Aliases§
- Server
Result - Convenience type alias:
Result<T, ServerError>.