[][src]Struct elektra::kdb::KDBErrorWrapper

pub struct KDBErrorWrapper<'a> { /* fields omitted */ }

Wraps a key that contains error metakeys

Methods

impl<'a> KDBErrorWrapper<'a>[src]

pub fn new(error_key: StringKey) -> KDBErrorWrapper[src]

Constructs a new KDBErrorWrapper from a StringKey. Only pass keys where the metakeys error/* are set.

pub fn number(&self) -> String[src]

Returns the error number or an empty string if unavailable.

pub fn reason(&self) -> String[src]

Returns the error reason or an empty string if unavailable.

pub fn module(&self) -> String[src]

Returns the module where the error occured or an empty string if unavailable.

pub fn description(&self) -> String[src]

Returns a description of the error or an empty string if unavailable.

pub fn file(&self) -> String[src]

Returns the source file from where the error information comes or an empty string if unavailable.

pub fn line(&self) -> String[src]

Returns the exact line of that source file or an empty string if unavailable.

pub fn to_error_message(&self) -> String[src]

Returns a formatted error message

Trait Implementations

impl<'a> Debug for KDBErrorWrapper<'a>[src]

impl<'a> Display for KDBErrorWrapper<'a>[src]

impl<'a> Error for KDBErrorWrapper<'a>[src]

Auto Trait Implementations

impl<'a> !Send for KDBErrorWrapper<'a>

impl<'a> Unpin for KDBErrorWrapper<'a>

impl<'a> !Sync for KDBErrorWrapper<'a>

impl<'a> !UnwindSafe for KDBErrorWrapper<'a>

impl<'a> RefUnwindSafe for KDBErrorWrapper<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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