Type Alias wick_component_cli::Error
source · pub type Error = CliError;Expand description
The crate’s error type;.
Aliased Type§
enum Error {
RpcError(RpcError),
IpAddrError(AddrParseError),
IOError(Error),
Config(Error),
TransportError(Error),
JoinError(JoinError),
InvalidArgument(String),
InvalidInput(String),
Configuration(String),
Encoding {
data: String,
port: String,
ty: Type,
},
MissingArgumentValue(String),
}Variants§
RpcError(RpcError)
An upstream error from wick_rpc.
IpAddrError(AddrParseError)
An error parsing an IP address.
IOError(Error)
An IO error binding to a port or similar.
Config(Error)
Error related to configuration or asset loading.
TransportError(Error)
An upstream error from tonic.
JoinError(JoinError)
An internal error running asynchronous jobs.
InvalidArgument(String)
Thrown when the CLI received an invalid argument to pass to an invocation.
InvalidInput(String)
Thrown when parsed input name was not found on the target operation.
Configuration(String)
A general configuration error.
Encoding
Fields
Could not convert passed argument to a suitable intermediary format.
MissingArgumentValue(String)
Dangling arguments (e.g. –arg instead of –arg value or –arg=value)
Trait Implementations§
source§impl Error for CliError
impl Error for CliError
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<AddrParseError> for CliError
impl From<AddrParseError> for CliError
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.