Struct reproto_core::errors::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Methods
impl Error
[src]
pub fn new<M: Into<Cow<'static, str>>>(message: M) -> Self
[src]
pub fn with_suppressed<S: IntoIterator<Item = Error>>(
self,
suppressed: S
) -> Error
[src]
self,
suppressed: S
) -> Error
Set the position for this error.
pub fn display(&self) -> Display
[src]
Convert errro into a type that is fmt::Display
.
WARNING: drops error information. Only use if absolutely necessary!
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
Get backtrace.
pub fn message(&self) -> &str
[src]
Get the message for the error.
pub fn cause(&self) -> Option<&Error>
[src]
Get the cause of this error.
pub fn suppressed(&self) -> Vec<&Error>
[src]
Get all suppressed errors.
ⓘImportant traits for Causes<'a>pub fn causes(&self) -> Causes
[src]
ⓘImportant traits for Causes<'a>
Iterate over all causes.