pub enum A2AError {
Show 16 variants
JsonRpc {
code: i32,
message: String,
data: Option<Value>,
},
JsonParse(Error),
InvalidRequest(String),
InvalidParams(String),
MethodNotFound(String),
TaskNotFound(String),
TaskNotCancelable(String),
PushNotificationNotSupported,
UnsupportedOperation(String),
ContentTypeNotSupported(String),
InvalidAgentResponse(String),
AuthenticatedExtendedCardNotConfigured,
Internal(String),
ValidationError {
field: String,
message: String,
},
DatabaseError(String),
Io(Error),
}Expand description
Error type for the A2A protocol operations
Variants§
JsonRpc
JsonParse(Error)
InvalidRequest(String)
InvalidParams(String)
MethodNotFound(String)
TaskNotFound(String)
TaskNotCancelable(String)
PushNotificationNotSupported
UnsupportedOperation(String)
ContentTypeNotSupported(String)
InvalidAgentResponse(String)
AuthenticatedExtendedCardNotConfigured
Internal(String)
ValidationError
DatabaseError(String)
Io(Error)
Implementations§
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<A2AError> for JSONRPCError
impl From<A2AError> for JSONRPCError
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