Type Alias Error

Source
pub type Error = CliError;
Expand description

The crate’s error type;.

Aliased Type§

pub 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

Could not convert passed argument to a suitable intermediary format.

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.

§

MissingArgumentValue(String)

Dangling arguments (e.g. –arg instead of –arg value or –arg=value)