pub enum EpsError {
GenericError,
IoError {
cause: ErrorKind,
description: String,
},
ParsingFailure {
source: String,
},
CommandFailure {
command: String,
},
}
EpsError
Describes various errors which may result from using EPS APIs
Error resulting from underlying Io functions
Fields of IoError
Underlying cause captured from io function
Error resulting from receiving invalid data from EPS
Fields of ParsingFailure
Source where invalid data was received
CommandFailure
Error resulting from a failure with an EPS command
Fields of CommandFailure
Convience function for creating an EpsError::ParsingFailure
- source - Source of parsing failure
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Convience converter from io::Error to EpsError
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
impl<T> AsFail for T where T: Fail, | |
fn as_fail(&self) -> &(dyn Fail + 'static) | |
Converts a reference to Self
into a dynamic trait object of Fail
.
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn compat(self) -> Compat<Self> | |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more