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 Errorpub 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) -> Selfpub 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>
) -> Selfpub 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
) -> Selfpub 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>
) -> SelfTrait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, w: &mut Formatter) -> Result[src]
fn fmt(&self, w: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, w: &mut Formatter) -> Result[src]
fn fmt(&self, w: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for Error[src]
impl Error for Error