Enum garden::errors::GardenError
source · pub enum GardenError {
Show 24 variants
AssertionError(String),
ConfigurationError(String),
CreateConfigurationError {
path: PathBuf,
err: Error,
},
EmptyConfiguration {
path: PathBuf,
},
EmptyTreeQueryResult(String),
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,
path: String,
},
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,
},
WorktreeParentNotPlantedError {
parent: PathBuf,
tree: String,
},
WriteConfigurationError {
path: PathBuf,
},
}
Variants§
AssertionError(String)
ConfigurationError(String)
CreateConfigurationError
EmptyConfiguration
EmptyTreeQueryResult(String)
ExitStatus(i32)
ExitStatus is used to exit without printing an error message.
FileExists(String)
FileNotFound
GardenNotFound
GardenPatternError
IOError(String)
InvalidConfiguration
InvalidGardenArgument
OSError(String)
ReadConfig
ReadFile
SyncConfigurationError
TreeNotFound
Usage(String)
WorktreeGitCheckoutError
WorktreeNotFound
WorktreeParentCreationError
WorktreeParentNotPlantedError
WriteConfigurationError
Trait Implementations§
source§impl Debug for GardenError
impl Debug for GardenError
source§impl Display for GardenError
impl Display for GardenError
source§impl Error for GardenError
impl Error for GardenError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<GardenError> for i32
impl From<GardenError> for i32
source§fn from(garden_err: GardenError) -> Self
fn from(garden_err: GardenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GardenError
impl !RefUnwindSafe for GardenError
impl Send for GardenError
impl Sync for GardenError
impl Unpin for GardenError
impl !UnwindSafe for GardenError
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more