Enum argi::Error[][src]

pub enum Error {
    DataRequired(Vec<String>),
    DataRequiredArg(String),
    Io(Error),
    InvalidCurExe,
    CommandNotFound((String, Vec<String>)),
    ArgumentNotFound((String, Vec<String>)),
    NothingInputted,
    InvalidData(&'static str),
}
Expand description

Represents potential parsing errors which may occur

Variants

DataRequired(Vec<String>)

Data was required after known command/argument in stack but was not found

Tuple Fields of DataRequired

0: Vec<String>
DataRequiredArg(String)

Data was required for argument but was not found

Tuple Fields of DataRequiredArg

0: String
Io(Error)

Input/output error

Tuple Fields of Io

0: Error
InvalidCurExe

Current executable name is invalid

CommandNotFound((String, Vec<String>))

Command name provided could not be found

Tuple Fields of CommandNotFound

0: (String, Vec<String>)
ArgumentNotFound((String, Vec<String>))

Argument name provided could not be found

Tuple Fields of ArgumentNotFound

0: (String, Vec<String>)
NothingInputted

Nothing was inputted

InvalidData(&'static str)

Invalid data was provided

Tuple Fields of InvalidData

0: &'static str

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.