Struct etrace::Error[][src]

pub struct Error<T: Debug + Send> {
    pub kind: T,
    pub description: String,
    pub file: &'static str,
    pub line: u32,
    pub sub_error: Option<Rc<WrappedError>>,
}

A typed-error that contains the error-kind, description, the position (file, line) and an optional sub-error

Fields

Methods

impl<T: Debug + Send> Error<T>
[src]

Creates a new error with an explicit description

Note: This function is not intended for direct use; take a look at the new_err!()-macro instead

Creates a new error

Note: This function is not intended for direct use; take a look at the new_err!()-macro instead

Creates a new error with an explicit description and a sub-error

Note: This function is not intended for direct use; take a look at the rethrow_err!()- macro instead

Creates a new error with a sub-error

Note: This function is not intended for direct use; take a look at the rethrow_err!()- macro instead

Creates a new error with the same kind and description as in the sub-error

Note: This function is not intended for direct use; take a look at the rethrow_err!()- macro instead

Trait Implementations

impl<T: Debug + Send> From<Error<T>> for WrappedError
[src]

Performs the conversion.

impl<T: Debug + Debug + Send> Debug for Error<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Debug + Send> ToString for Error<T>
[src]

Converts the error into a human-readable description ("pretty-print")

impl<T: Debug + Send> Send for Error<T>
[src]

Auto Trait Implementations

impl<T> !Sync for Error<T>