Struct abscissa::error::Error [−][src]
pub struct Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq, { /* fields omitted */ }
Error types used by this library, generic around Kind
s
Methods
impl<Kind> Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
[src]
impl<Kind> Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
pub fn new<C>(into_context: C, description: Option<String>) -> Self where
C: Into<Context<Kind>>,
[src]
pub fn new<C>(into_context: C, description: Option<String>) -> Self where
C: Into<Context<Kind>>,
Create a new error from the given context object and description
ⓘImportant traits for &'a mut Rpub fn kind(&self) -> &Kind
[src]
ⓘImportant traits for &'a mut R
pub fn kind(&self) -> &Kind
Obtain the error's Kind
pub fn description(&self) -> &str
[src]
pub fn description(&self) -> &str
Get the error's description
Trait Implementations
impl<Kind: Debug> Debug for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
[src]
impl<Kind: Debug> Debug for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Kind> Display for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
[src]
impl<Kind> Display for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Kind> Fail for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
[src]
impl<Kind> Fail for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
fn cause(&self) -> Option<&Fail>
[src]
fn cause(&self) -> Option<&Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
impl<Kind> From<Kind> for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,
[src]
impl<Kind> From<Kind> for Error<Kind> where
Kind: Fail + Clone + Display + Eq + PartialEq,