pub enum A2AError {
TaskNotFound(String),
TaskNotCancelable(String),
PushNotificationNotSupported,
UnsupportedOperation(String),
ContentTypeNotSupported(String),
InvalidAgentResponse(String),
ExtendedAgentCardNotConfigured,
ExtensionSupportRequired(String),
VersionNotSupported(String),
MethodNotFound(String),
InvalidParams(String),
Internal(String),
}Expand description
Error type for A2A handler operations.
Error codes follow the A2A v1.0 specification:
- Standard JSON-RPC codes: -32600..-32603
- A2A-specific codes: -32001..-32009
Variants§
TaskNotFound(String)
TaskNotCancelable(String)
PushNotificationNotSupported
UnsupportedOperation(String)
ContentTypeNotSupported(String)
InvalidAgentResponse(String)
ExtendedAgentCardNotConfigured
ExtensionSupportRequired(String)
VersionNotSupported(String)
MethodNotFound(String)
InvalidParams(String)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Error for A2AError
impl Error for A2AError
1.30.0 · 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()
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