pub enum ProtocolErrorCode {
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
ToolNotFound = -32_803,
}Expand description
Standard JSON-RPC / MCP protocol error codes.
These are used ONLY for protocol-level failures.
Tool execution errors should use SisterError + isError: true.
Variants§
ParseError = -32_700
JSON parse error (-32700)
InvalidRequest = -32_600
Invalid JSON-RPC request (-32600)
MethodNotFound = -32_601
Method not found (-32601)
InvalidParams = -32_602
Invalid method parameters (-32602)
InternalError = -32_603
Internal JSON-RPC error (-32603)
ToolNotFound = -32_803
Tool not found (-32803) — MCP extension
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolErrorCode
impl Clone for ProtocolErrorCode
Source§fn clone(&self) -> ProtocolErrorCode
fn clone(&self) -> ProtocolErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolErrorCode
impl Debug for ProtocolErrorCode
Source§impl<'de> Deserialize<'de> for ProtocolErrorCode
impl<'de> Deserialize<'de> for ProtocolErrorCode
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
Source§impl Display for ProtocolErrorCode
impl Display for ProtocolErrorCode
Source§impl Hash for ProtocolErrorCode
impl Hash for ProtocolErrorCode
Source§impl PartialEq for ProtocolErrorCode
impl PartialEq for ProtocolErrorCode
Source§impl Serialize for ProtocolErrorCode
impl Serialize for ProtocolErrorCode
impl Copy for ProtocolErrorCode
impl Eq for ProtocolErrorCode
impl StructuralPartialEq for ProtocolErrorCode
Auto Trait Implementations§
impl Freeze for ProtocolErrorCode
impl RefUnwindSafe for ProtocolErrorCode
impl Send for ProtocolErrorCode
impl Sync for ProtocolErrorCode
impl Unpin for ProtocolErrorCode
impl UnsafeUnpin for ProtocolErrorCode
impl UnwindSafe for ProtocolErrorCode
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