pub enum SettingsError {
Show 13 variants
ReadError {
path: PathBuf,
source: Error,
},
WriteError {
path: PathBuf,
source: Error,
},
ParseError {
path: PathBuf,
source: Error,
},
SerializeError(Error),
NoHomeDirectory,
NoProjectDirectory(String),
NotFound(PathBuf),
PermissionDenied {
path: PathBuf,
source: Error,
},
SystemSettingsReadOnly,
InvalidLevel(SettingsLevel),
CreateDirError {
path: PathBuf,
source: Error,
},
InvalidPermission(String),
FigmentError(Box<Error>),
}Expand description
Errors that can occur when working with Claude Code settings.
Variants§
ReadError
Failed to read settings file.
WriteError
Failed to write settings file.
ParseError
Failed to parse settings JSON.
SerializeError(Error)
Failed to serialize settings to JSON.
NoHomeDirectory
Failed to determine home directory.
NoProjectDirectory(String)
Failed to determine project directory.
NotFound(PathBuf)
Settings file not found.
PermissionDenied
Permission denied when accessing settings.
SystemSettingsReadOnly
Cannot write to system-level settings (read-only).
InvalidLevel(SettingsLevel)
Invalid settings level for the operation.
CreateDirError
Failed to create parent directory.
InvalidPermission(String)
Invalid permission pattern.
FigmentError(Box<Error>)
Figment configuration error.
Trait Implementations§
Source§impl Debug for SettingsError
impl Debug for SettingsError
Source§impl Display for SettingsError
impl Display for SettingsError
Source§impl Error for SettingsError
impl Error for SettingsError
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<Error> for SettingsError
impl From<Error> for SettingsError
Auto Trait Implementations§
impl Freeze for SettingsError
impl !RefUnwindSafe for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl UnsafeUnpin for SettingsError
impl !UnwindSafe for SettingsError
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