[−][src]Struct elektra::kdb::KDBErrorWrapper
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,