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