pub enum A2AError {
Show 14 variants
DiscoveryFailed(String),
InvalidAgentCard(String),
Transport(Error),
Serialization(Error),
JsonRpc {
code: i64,
message: String,
data: Option<Value>,
},
TaskNotFound(String),
TaskRejected(String),
TaskFailed(String),
AuthRequired(String),
StreamingError(String),
PushNotificationError(String),
InvalidUrl(ParseError),
Timeout(Duration),
Unsupported(String),
}Expand description
Errors that can occur when using the A2A protocol.
Variants§
DiscoveryFailed(String)
Failed to discover the agent card at the well-known endpoint.
InvalidAgentCard(String)
The agent card is invalid or missing required fields.
Transport(Error)
HTTP transport error.
Serialization(Error)
JSON serialization/deserialization error.
JsonRpc
The remote agent returned a JSON-RPC error.
TaskNotFound(String)
The task was not found.
TaskRejected(String)
The task was rejected by the remote agent.
TaskFailed(String)
The task failed during execution.
AuthRequired(String)
The task requires authentication.
StreamingError(String)
Streaming error (SSE).
PushNotificationError(String)
Push notification configuration error.
InvalidUrl(ParseError)
URL parsing error.
Timeout(Duration)
Timeout waiting for task completion.
Unsupported(String)
The operation is not supported by the remote agent.
Trait Implementations§
Source§impl Error for A2AError
impl Error for A2AError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseError> for A2AError
impl From<ParseError> for A2AError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for A2AError
impl !RefUnwindSafe for A2AError
impl Send for A2AError
impl Sync for A2AError
impl Unpin for A2AError
impl UnsafeUnpin for A2AError
impl !UnwindSafe for A2AError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.