pub enum ErrorCode {
Show 15 variants
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
SessionNotFound = -32_001,
SessionAlreadyExists = -32_002,
NotConnected = -32_003,
AuthRequired = -32_004,
InvalidMode = -32_005,
Cancelled = -32_006,
ConnectionFailed = -32_007,
StreamingError = -32_008,
ToolFailed = -32_009,
ConfigError = -32_010,
}Expand description
ACP protocol error codes
Standard JSON-RPC error codes and ACP-specific codes.
Variants§
ParseError = -32_700
Parse error: Invalid JSON
InvalidRequest = -32_600
Invalid request: Not a valid request object
MethodNotFound = -32_601
Method not found
InvalidParams = -32_602
Invalid params
InternalError = -32_603
Internal error
SessionNotFound = -32_001
Session not found
SessionAlreadyExists = -32_002
Session already exists
NotConnected = -32_003
Not connected to Claude
AuthRequired = -32_004
Authentication required
InvalidMode = -32_005
Invalid mode
Cancelled = -32_006
Operation cancelled
ConnectionFailed = -32_007
Connection failed
StreamingError = -32_008
Streaming error
ToolFailed = -32_009
Tool execution failed
ConfigError = -32_010
Configuration error
Implementations§
Trait Implementations§
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request