Struct cvar::Error [] [src]

pub struct Error<'a> {
    pub id: &'a str,
    pub name: &'a str,
    pub inner: InnerError,
    // some fields omitted
}

Contextual error.

Fields

id: &'a str

Identifier argument.

name: &'a str

Specific node that triggered the error, this is a substring of id.

inner: InnerError

The actual error.

Methods

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

fn new(id: &'a str, name: &'a str, inner: InnerError) -> Error<'a>

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn fmt(&self, _f: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

The lower-level cause of this error, if any. Read more