pub enum ClaudeError {
NotFound,
IncompatibleVersion {
version: String,
},
ExecutionFailed {
stderr: String,
},
ParseError {
reason: String,
},
ModelNotAvailable {
model: String,
},
AuthenticationFailed {
reason: String,
},
}Expand description
Claude CLI integration errors
Variants§
Trait Implementations§
Source§impl Debug for ClaudeError
impl Debug for ClaudeError
Source§impl Display for ClaudeError
impl Display for ClaudeError
Source§impl Error for ClaudeError
impl Error for ClaudeError
1.30.0 · 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<ClaudeError> for XCheckerError
impl From<ClaudeError> for XCheckerError
Source§fn from(source: ClaudeError) -> Self
fn from(source: ClaudeError) -> Self
Converts to this type from the input type.
Source§impl UserFriendlyError for ClaudeError
impl UserFriendlyError for ClaudeError
Source§fn user_message(&self) -> String
fn user_message(&self) -> String
Get a user-friendly error message
Source§fn suggestions(&self) -> Vec<String>
fn suggestions(&self) -> Vec<String>
Get suggested actions to resolve the error
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Get the error category for grouping similar errors
Auto Trait Implementations§
impl Freeze for ClaudeError
impl RefUnwindSafe for ClaudeError
impl Send for ClaudeError
impl Sync for ClaudeError
impl Unpin for ClaudeError
impl UnsafeUnpin for ClaudeError
impl UnwindSafe for ClaudeError
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