pub enum PorterError {
Show 14 variants
Config(String),
ConfigNotFound(PathBuf),
Io {
source: Error,
path: PathBuf,
},
FsExtra(Error),
GitCommand {
cmd: String,
cwd: PathBuf,
status: String,
stdout: String,
stderr: String,
},
GitOperation(String),
PathNotFound(PathBuf),
OutputPathExists(PathBuf),
ToolNotFound(String),
SecretsFound(String),
InternalDependency(String),
TomlParse {
source: Error,
path: PathBuf,
},
TomlSerialize(Error),
TempDir {
source: Error,
},
}
Variants§
Config(String)
ConfigNotFound(PathBuf)
Io
FsExtra(Error)
GitCommand
GitOperation(String)
PathNotFound(PathBuf)
OutputPathExists(PathBuf)
ToolNotFound(String)
SecretsFound(String)
InternalDependency(String)
TomlParse
TomlSerialize(Error)
TempDir
Trait Implementations§
Source§impl Debug for PorterError
impl Debug for PorterError
Source§impl Display for PorterError
impl Display for PorterError
Source§impl Error for PorterError
impl Error for PorterError
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 PorterError
impl From<Error> for PorterError
Auto Trait Implementations§
impl Freeze for PorterError
impl !RefUnwindSafe for PorterError
impl Send for PorterError
impl Sync for PorterError
impl Unpin for PorterError
impl !UnwindSafe for PorterError
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