pub enum A2AError {
JSONParse(JSONParseError),
InvalidRequest(InvalidRequestError),
MethodNotFound(MethodNotFoundError),
InvalidParams(InvalidParamsError),
Internal(InternalError),
TaskNotFound(TaskNotFoundError),
TaskNotCancelable(TaskNotCancelableError),
PushNotificationNotSupported(PushNotificationNotSupportedError),
UnsupportedOperation(UnsupportedOperationError),
ContentTypeNotSupported(ContentTypeNotSupportedError),
InvalidAgentResponse(InvalidAgentResponseError),
AuthenticatedExtendedCardNotConfigured(AuthenticatedExtendedCardNotConfiguredError),
}Expand description
A discriminated union of all standard JSON-RPC and A2A-specific error types.
Variants§
JSONParse(JSONParseError)
InvalidRequest(InvalidRequestError)
MethodNotFound(MethodNotFoundError)
InvalidParams(InvalidParamsError)
Internal(InternalError)
TaskNotFound(TaskNotFoundError)
TaskNotCancelable(TaskNotCancelableError)
PushNotificationNotSupported(PushNotificationNotSupportedError)
UnsupportedOperation(UnsupportedOperationError)
ContentTypeNotSupported(ContentTypeNotSupportedError)
InvalidAgentResponse(InvalidAgentResponseError)
AuthenticatedExtendedCardNotConfigured(AuthenticatedExtendedCardNotConfiguredError)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2AError
impl<'de> Deserialize<'de> for A2AError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for A2AError
impl RefUnwindSafe for A2AError
impl Send for A2AError
impl Sync for A2AError
impl Unpin 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