Struct coded::Error [−][src]
pub struct Error(_);
Expand description
A general-purpose error with a “kind” from Google’s canonical error space.
This currently tracks:
- The error “kind”, taken from Google’s canonical error space.
- A human-readable message.
- An optional source/cause, exposed through
std::error::Error::cause
. - An optional backtrace. This is present if
coded
was compiled with thebacktrace
orunstable_std_backtrace
feature flags and the program was run withRUST_BACKTRACE
orRUST_LIB_BACKTRACE
set as described atstd::backtrace
.
The Display
impl will display a short summary of this error itself.
It won’t display the chain of sources or the backtrace.
To display this error along with its causes and stack trace, use the chain
method.
Implementations
Returns a new error with the given kind and message.
Returns a new error wrapping a source with no additional message.
Trait Implementations
Formats this error alone (not its full chain).
Performs the conversion.