pub enum DynamicCliError {
Config(ConfigError),
Parse(ParseError),
Validation(ValidationError),
Execution(ExecutionError),
Registry(RegistryError),
Wasm(WasmError),
Io(Error),
}Expand description
Main error for the dynamic-cli framework
Encompasses all possible error categories. Uses thiserror
to automatically generate Display and Error implementations.
Variants§
Config(ConfigError)
Errors related to the configuration file
Parse(ParseError)
Command parsing errors
Validation(ValidationError)
Validation errors
Execution(ExecutionError)
Execution errors
Registry(RegistryError)
Registry errors
Wasm(WasmError)
WASM plugin errors (only available with the wasm-plugins feature)
Io(Error)
I/O errors
Trait Implementations§
Source§impl Debug for DynamicCliError
impl Debug for DynamicCliError
Source§impl Display for DynamicCliError
impl Display for DynamicCliError
Source§impl Error for DynamicCliError
impl Error for DynamicCliError
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<ConfigError> for DynamicCliError
impl From<ConfigError> for DynamicCliError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DynamicCliError
impl From<Error> for DynamicCliError
Source§impl From<ExecutionError> for DynamicCliError
impl From<ExecutionError> for DynamicCliError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DynamicCliError
impl From<ParseError> for DynamicCliError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for DynamicCliError
impl From<RegistryError> for DynamicCliError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for DynamicCliError
impl From<ValidationError> for DynamicCliError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicCliError
impl !UnwindSafe for DynamicCliError
impl Freeze for DynamicCliError
impl Send for DynamicCliError
impl Sync for DynamicCliError
impl Unpin for DynamicCliError
impl UnsafeUnpin for DynamicCliError
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