Struct aws_smithy_types::error::display::DisplayErrorContext
source · pub struct DisplayErrorContext<E: Error>(pub E);
Expand description
Provides a Display
impl for an Error
that outputs the full error context
This utility follows the error cause/source chain and displays every error message in the chain separated by “: “. At the end of the chain, it outputs a debug view of the entire error chain.
Example
println!("There was an unhandled error: {}", DisplayErrorContext(&err));
Tuple Fields§
§0: E
The error to display full context for