Struct ucglib::error::Error [−][src]
pub struct Error { pub err_type: ErrorType, pub pos: Position, pub msg: String, pub cause: Option<Box<Error>>, // some fields omitted }
Error defines an Error type for parsing and building UCG code.
Fields
err_type: ErrorType
pos: Position
msg: String
cause: Option<Box<Error>>
Methods
impl Error
[src]
impl Error
pub fn new<S: Into<String>>(msg: S, t: ErrorType, pos: Position) -> Self
[src]
pub fn new<S: Into<String>>(msg: S, t: ErrorType, pos: Position) -> Self
pub fn new_with_boxed_cause<S: Into<String>>(
msg: S,
t: ErrorType,
cause: Box<Self>
) -> Self
[src]
pub fn new_with_boxed_cause<S: Into<String>>(
msg: S,
t: ErrorType,
cause: Box<Self>
) -> Self
pub fn new_with_cause<S: Into<String>>(
msg: S,
t: ErrorType,
cause: Self
) -> Self
[src]
pub fn new_with_cause<S: Into<String>>(
msg: S,
t: ErrorType,
cause: Self
) -> Self
pub fn new_with_errorkind<S: Into<String>>(
msg: S,
t: ErrorType,
pos: Position,
cause: ErrorKind<Error>
) -> Self
[src]
pub fn new_with_errorkind<S: Into<String>>(
msg: S,
t: ErrorType,
pos: Position,
cause: ErrorKind<Error>
) -> Self
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, w: &mut Formatter) -> Result
[src]
fn fmt(&self, w: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, w: &mut Formatter) -> Result
[src]
fn fmt(&self, w: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error