pub enum Error {
Show 40 variants
StateOnSyncedDrive {
path: PathBuf,
marker: String,
},
CustomOauthEndpoint,
StateUnreadable {
path: PathBuf,
source: Error,
},
StateCorrupt {
path: PathBuf,
source: Error,
},
StateVersionMismatch {
path: PathBuf,
found: u32,
expected: u32,
},
StateWrongMachine {
path: PathBuf,
},
HomeUnwritable {
path: PathBuf,
source: Error,
},
StateWriteFailed {
path: PathBuf,
source: Error,
},
ClaudeConfigMissing {
path: PathBuf,
},
ClaudeConfigUnreadable {
path: PathBuf,
source: Error,
},
ClaudeConfigNotJson {
path: PathBuf,
source: Error,
},
LiveCredentialAbsent,
LiveCredentialShapeUnexpected {
detail: String,
},
AccountUnknown {
label: String,
},
NothingParked {
label: String,
},
ParkedLoginExpired {
label: String,
},
LiveAccountNotEnrolled {
email: String,
},
AlreadyEnrolled {
email: String,
label: String,
},
LabelTaken {
label: String,
email: String,
},
CannotForgetActiveAccount {
label: String,
},
ParkSlotExhausted,
ParkedCredentialMissing {
label: String,
},
ParkedCredentialCorrupt {
label: String,
detail: String,
},
ConfigBackupFailed {
path: PathBuf,
source: Error,
},
ConfigWriteFailed {
path: PathBuf,
detail: String,
},
SessionExpired,
IdentityUnverifiable {
detail: String,
},
SignedInAccountChanged,
RecoveryUndetermined {
from: String,
to: String,
detail: String,
},
SwitchRolledBack {
from: String,
to: String,
detail: String,
},
SwitchCorrupted {
from: String,
to: String,
detail: String,
},
RecoveryRecordCorrupt {
path: PathBuf,
source: Error,
},
RecoveryFailed {
path: PathBuf,
source: Error,
},
ClaudeNotFound,
RenewalFailed {
label: String,
detail: String,
},
SignInIncomplete,
SignInInProgress,
Usage(String),
Store(Error),
Lock(LockError),
}Variants§
StateOnSyncedDrive
CustomOauthEndpoint
StateUnreadable
StateCorrupt
StateVersionMismatch
StateWrongMachine
HomeUnwritable
StateWriteFailed
ClaudeConfigMissing
ClaudeConfigUnreadable
ClaudeConfigNotJson
LiveCredentialAbsent
LiveCredentialShapeUnexpected
AccountUnknown
NothingParked
ParkedLoginExpired
LiveAccountNotEnrolled
AlreadyEnrolled
LabelTaken
CannotForgetActiveAccount
ParkSlotExhausted
ParkedCredentialMissing
ParkedCredentialCorrupt
ConfigBackupFailed
ConfigWriteFailed
Claude Code refetches its profile only once a day, so this does not correct itself.
SessionExpired
IdentityUnverifiable
SignedInAccountChanged
RecoveryUndetermined
SwitchRolledBack
SwitchCorrupted
RecoveryRecordCorrupt
RecoveryFailed
ClaudeNotFound
RenewalFailed
SignInIncomplete
SignInInProgress
Usage(String)
The command line itself was wrong; the message is clap’s.
Store(Error)
Lock(LockError)
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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