Skip to main content

Module error

Module error 

Source
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§

ServerError
Server framework error type.

Constants§

A2A_RUST_ERROR_DOMAIN
The ErrorInfo domain of the reasons this SDK defines, where A2A defines none (ADR 0049).
HALTED_REASON
The ErrorInfo reason a halt refusal carries (ADR 0049); the same as a2a_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 handler exposes internal errors.

Type Aliases§

ServerResult
Convenience type alias: Result<T, ServerError>.