Struct args::ArgsError
[−]
[src]
pub struct ArgsError { // some fields omitted }
An implementation of Error
which may or may not include a scope and/or usage message.
Methods
impl ArgsError
[src]
fn new(scope: &str, msg: &str) -> ArgsError
Creates a new ArgsError
with the provided scope
and msg
.
If scope
is an empty string (i.e. ""
) it will be ignored.
fn new_with_usage(scope: &str, msg: &str, usage: &str) -> ArgsError
Creates a new ArgsError
with the provided scope
, msg
and usage
message.
If either scope
or usage
are an empty string (i.e. ""
) they will be ignored.