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

§data: String

The data that could not be converted.

§port: String

The port that the data was being passed to.

§ty: Type

The type of the port.

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 Debug for CliError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CliError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CliError

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AddrParseError> for CliError

source§

fn from(source: AddrParseError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CliError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CliError

source§

fn from(source: AssetError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CliError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<JoinError> for CliError

source§

fn from(source: JoinError) -> Self

Converts to this type from the input type.
source§

impl From<RpcError> for CliError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.