[][src]Struct xdoc::error::XErr

pub struct XErr {
    pub message: String,
    pub file: String,
    pub line: u64,
    pub source: Option<Box<dyn Error>>,
}

A generic error type for this library.

Fields

message: String

The error message.

file: String

The sourcecode file where the error was raised.

line: u64

The sourcecode line where the error was raised.

source: Option<Box<dyn Error>>

The underlying error that is being wrapped.

Trait Implementations

impl Debug for XErr[src]

impl Display for XErr[src]

impl Error for XErr[src]

Auto Trait Implementations

impl !RefUnwindSafe for XErr

impl !Send for XErr

impl !Sync for XErr

impl Unpin for XErr

impl !UnwindSafe for XErr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.