pub trait StackError: Error {
// Required methods
fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>);
fn next(&self) -> Option<&dyn StackError>;
// Provided methods
fn last(&self) -> &dyn StackError
where Self: Sized { ... }
fn transparent(&self) -> bool { ... }
}
Required Methods§
fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
fn next(&self) -> Option<&dyn StackError>
Provided Methods§
fn last(&self) -> &dyn StackErrorwhere
Self: Sized,
Sourcefn transparent(&self) -> bool
fn transparent(&self) -> bool
Indicates whether this error is “transparent”, that it delegates its “display” and “source”
to the underlying error. Could be useful when you are just wrapping some external error,
AND can not or would not provide meaningful contextual info. For example, the
DataFusionError
.