Enum garden::errors::GardenError
source · [−]pub enum GardenError {
Show 22 variants
AssertionError(String),
ConfigurationError(String),
CreateConfigurationError {
path: PathBuf,
err: Error,
},
EmptyConfiguration {
path: PathBuf,
},
ExitStatus(i32),
FileExists(String),
FileNotFound,
GardenNotFound {
garden: String,
},
GardenPatternError {
garden: String,
},
IOError(String),
InvalidConfiguration {
msg: String,
},
InvalidGardenArgument {
tree: String,
garden: String,
},
OSError(String),
ReadConfig {
err: ScanError,
},
ReadFile {
path: PathBuf,
err: Error,
},
SyncConfigurationError {
path: PathBuf,
err: Error,
},
TreeNotFound {
tree: String,
},
Usage(String),
WorktreeGitCheckoutError {
tree: String,
status: i32,
},
WorktreeNotFound {
worktree: String,
tree: String,
},
WorktreeParentCreationError {
worktree: String,
tree: String,
},
WriteConfigurationError {
path: PathBuf,
},
}
Variants
AssertionError(String)
ConfigurationError(String)
CreateConfigurationError
EmptyConfiguration
Fields
path: PathBuf
ExitStatus(i32)
ExitStatus is used to exit without printing an error message.
FileExists(String)
FileNotFound
GardenNotFound
Fields
garden: String
GardenPatternError
Fields
garden: String
IOError(String)
InvalidConfiguration
Fields
msg: String
InvalidGardenArgument
OSError(String)
ReadConfig
Fields
err: ScanError
ReadFile
SyncConfigurationError
TreeNotFound
Fields
tree: String
Usage(String)
WorktreeGitCheckoutError
WorktreeNotFound
WorktreeParentCreationError
WriteConfigurationError
Fields
path: PathBuf
Trait Implementations
sourceimpl Debug for GardenError
impl Debug for GardenError
sourceimpl Display for GardenError
impl Display for GardenError
sourceimpl Error for GardenError
impl Error for GardenError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<GardenError> for i32
impl From<GardenError> for i32
sourcefn from(garden_err: GardenError) -> Self
fn from(garden_err: GardenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for GardenError
impl Send for GardenError
impl Sync for GardenError
impl Unpin for GardenError
impl !UnwindSafe for GardenError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more