#[non_exhaustive]pub enum ErrorCode {
Show 14 variants
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
TaskNotFound = -32_001,
TaskNotCancelable = -32_002,
PushNotificationNotSupported = -32_003,
UnsupportedOperation = -32_004,
ContentTypeNotSupported = -32_005,
InvalidAgentResponse = -32_006,
ExtendedAgentCardNotConfigured = -32_007,
ExtensionSupportRequired = -32_008,
VersionNotSupported = -32_009,
}Expand description
Numeric error codes defined by JSON-RPC 2.0 and the A2A v1.0 specification.
JSON-RPC standard codes occupy the -32700 to -32600 range.
A2A-specific codes occupy -32001 to -32099.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ParseError = -32_700
Invalid JSON was received by the server (-32700).
InvalidRequest = -32_600
The JSON sent is not a valid Request object (-32600).
MethodNotFound = -32_601
The method does not exist or is not available (-32601).
InvalidParams = -32_602
Invalid method parameters (-32602).
InternalError = -32_603
Internal JSON-RPC error (-32603).
TaskNotFound = -32_001
The requested task was not found (-32001).
TaskNotCancelable = -32_002
The task cannot be canceled in its current state (-32002).
PushNotificationNotSupported = -32_003
The agent does not support push notifications (-32003).
UnsupportedOperation = -32_004
The requested operation is not supported by this agent (-32004).
ContentTypeNotSupported = -32_005
The requested content type is not supported (-32005).
InvalidAgentResponse = -32_006
The agent returned an invalid response (-32006).
ExtendedAgentCardNotConfigured = -32_007
Extended agent card not configured (-32007).
ExtensionSupportRequired = -32_008
A required extension is not supported (-32008).
VersionNotSupported = -32_009
The requested protocol version is not supported (-32009).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ErrorCode
impl Serialize for ErrorCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.