Struct cargo_edit::Error [−][src]
pub struct Error(pub ErrorKind, _);
Expand description
The Error type.
This tuple struct is made of two elements:
- an
ErrorKind
which is used to determine the type of the error. - An internal
State
, not meant for direct use outside oferror_chain
internals, containing:- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause()
.
Tuple Fields
0: ErrorKind
The kind of the error.
Implementations
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Construct a chained error from another boxed error and a kind, and generates a backtrace
Extends the error chain with a new entry.
A short description of the error.
This method is identical to Error::description()
Trait Implementations
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Extends the error chain with a new entry.
Returns an object which implements Display
for printing the full
context of this error. Read more
An error from the std::io module
An error from the git2 crate
An error from the cargo_metadata crate
An error from the semver crate
An error from the crates-index crate