pub enum BunCliError {
Io(Error),
CommandFailed {
command: String,
message: String,
},
InvalidProjectName(String),
BunNotInstalled,
TemplateCopyFailed(String),
DependencyFailed {
dependency: String,
message: String,
},
}Expand description
Custom error types for the bun-cli application
Variants§
Io(Error)
IO error occurred
CommandFailed
Command execution failed
InvalidProjectName(String)
Invalid project name
BunNotInstalled
Bun is not installed
TemplateCopyFailed(String)
Template copy failed
DependencyFailed
Dependency installation failed
Trait Implementations§
Source§impl Debug for BunCliError
impl Debug for BunCliError
Source§impl Display for BunCliError
impl Display for BunCliError
Source§impl Error for BunCliError
impl Error for BunCliError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BunCliError
impl !RefUnwindSafe for BunCliError
impl Send for BunCliError
impl Sync for BunCliError
impl Unpin for BunCliError
impl !UnwindSafe for BunCliError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more