error
A2A v1.0 Error Types
Type Aliases
Section titled “Type Aliases”A2AResult
Section titled “A2AResult”type A2AResult = Result<T, A2AError>;A2AError
Section titled “A2AError”A2A Protocol Error
Variants
| Variant | Description |
|---|---|
MethodNotFound { ... } | |
InvalidParams { ... } | |
AgentUnavailable { ... } | |
CapabilityValidationFailed { ... } | |
MethodExecutionFailed { ... } | |
RegistryError { ... } | |
ProtocolValidationError { ... } | |
JsonRpcError(anyhow::Error) | |
SerializationError(serde_json::Error) | |
Internal { ... } | |
TaskNotFound { ... } | |
TaskNotCancelable { ... } | |
PushNotificationNotSupported | |
UnsupportedOperation { ... } | |
ContentTypeNotSupported { ... } | |
InvalidAgentResponse { ... } | |
VersionNotSupported { ... } |
Methods
to_jsonrpc_error
Section titled “to_jsonrpc_error”fn to_jsonrpc_error(&self) -> JsonRpcErrormethod_not_found
Section titled “method_not_found”fn method_not_found<impl Into<String>>(method: impl Into) -> Selfinvalid_params
Section titled “invalid_params”fn invalid_params<impl Into<String>, impl Into<String>>(method: impl Into, details: impl Into) -> Selfagent_unavailable
Section titled “agent_unavailable”fn agent_unavailable<impl Into<String>, impl Into<String>>(agent_id: impl Into, reason: impl Into) -> Selfcapability_validation_failed
Section titled “capability_validation_failed”fn capability_validation_failed<impl Into<String>>(details: impl Into) -> Selfmethod_execution_failed
Section titled “method_execution_failed”fn method_execution_failed<impl Into<String>, impl Into<String>>(method: impl Into, details: impl Into) -> Selfregistry_error
Section titled “registry_error”fn registry_error<impl Into<String>>(details: impl Into) -> Selfprotocol_validation_error
Section titled “protocol_validation_error”fn protocol_validation_error<impl Into<String>>(details: impl Into) -> Selfinternal
Section titled “internal”fn internal<impl Into<String>>(details: impl Into) -> Selftask_not_found
Section titled “task_not_found”fn task_not_found<impl Into<String>>(task_id: impl Into) -> Selftask_not_cancelable
Section titled “task_not_cancelable”fn task_not_cancelable<impl Into<String>>(task_id: impl Into) -> Selfunsupported_operation
Section titled “unsupported_operation”fn unsupported_operation<impl Into<String>>(details: impl Into) -> Selfversion_not_supported
Section titled “version_not_supported”fn version_not_supported<impl Into<String>>(version: impl Into) -> Self