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 of error_chain
internals, containing:
- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause()
.
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Returns the kind of the error.
Iterates over the error chain.
Returns the backtrace associated with this error.
A string describing the error kind.
An error from the git-workarea crate.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Returns the kind of the error.
Iterates over the error chain.
Returns the backtrace associated with this error.
Returns an object which implements Display
for printing the full context of this 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