pub enum Error {
Show 32 variants
Unknown(String),
StringValueNotIn {
value_name: String,
value: String,
accepted: Vec<String>,
},
GitRetrieve {
dst: PathBuf,
url: String,
rev: Option<String>,
source: GitError,
msg: Box<String>,
},
GitFindConfig {
key: String,
source: GitError,
},
CanonicalizePath {
path: PathBuf,
source: Error,
},
CreateFolder {
path: PathBuf,
source: Error,
},
CreateTmpFolder {
source: Error,
},
RemoveFolder {
path: PathBuf,
source: Error,
},
ListFolder {
path: PathBuf,
source: Error,
},
CreateFile {
path: PathBuf,
source: Error,
},
RenameFile {
src: PathBuf,
dst: PathBuf,
source: Error,
},
CopyFile {
src: PathBuf,
dst: PathBuf,
source: Error,
},
CopyFilePermission {
src: PathBuf,
dst: PathBuf,
source: Error,
},
ReadFile {
path: PathBuf,
source: Error,
},
WriteFile {
path: PathBuf,
source: Error,
},
RemoveFile {
path: PathBuf,
source: Error,
},
RunCommand {
cmd: String,
source: Error,
},
ParsePathPattern {
value: String,
source: Error,
},
ParseGitUri {
value: String,
source: Error,
},
LocalPathNotFound {
path: PathBuf,
uri: String,
subfolder: Option<PathBuf>,
},
ApplicationPathNotFound {},
TestSamplesFailed {},
ReadVariable {
name: String,
value: String,
},
Io {
source: Error,
},
Handlebars {
when: String,
template: Box<String>,
source: Box<RenderError>,
},
SerdeYaml {
context: SpanTrace,
source: Error,
},
ScriptError {
script: String,
source: ScriptError,
},
SerdeJson {
source: Error,
},
WalkDir {
source: Error,
},
PathStripPrefixError {
source: StripPrefixError,
},
Clap {
source: Error,
},
Dialoguer {
source: Error,
},
}
Variants§
Unknown(String)
StringValueNotIn
GitRetrieve
GitFindConfig
CanonicalizePath
CreateFolder
CreateTmpFolder
RemoveFolder
ListFolder
CreateFile
RenameFile
CopyFile
CopyFilePermission
ReadFile
WriteFile
RemoveFile
RunCommand
ParsePathPattern
ParseGitUri
LocalPathNotFound
ApplicationPathNotFound
TestSamplesFailed
ReadVariable
Io
Handlebars
SerdeYaml
ScriptError
SerdeJson
WalkDir
PathStripPrefixError
Fields
§
source: StripPrefixError
Clap
Fields
§
source: Error
Dialoguer
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<StripPrefixError> for Error
impl From<StripPrefixError> for Error
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more