Struct myerror::MyError [] [src]

pub struct MyError {
    pub file: &'static str,
    pub line: u32,
    pub statement: String,
    pub description: String,
    pub cause: Option<Box<Error>>,
}

Fields

file: &'static str line: u32 statement: String description: String cause: Option<Box<Error>>

Trait Implementations

impl Debug for MyError
[src]

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

Formats the value using the given formatter.

impl Display for MyError
[src]

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

Formats the value using the given formatter.

impl Error for MyError
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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

impl<'a> From<&'a str> for MyError
[src]

fn from(x: &str) -> MyError

Performs the conversion.