Struct ucglib::error::BuildError[][src]

pub struct BuildError {
    pub err_type: ErrorType,
    pub pos: Option<Position>,
    pub msg: String,
    pub cause: Option<Box<dyn Error>>,
    // some fields omitted
}

Error defines an Error type for parsing and building UCG code.

Fields

err_type: ErrorTypepos: Option<Position>msg: Stringcause: Option<Box<dyn Error>>

Implementations

impl BuildError[src]

pub fn with_pos<S: Into<String>>(msg: S, t: ErrorType, pos: Position) -> Self[src]

pub fn new<S: Into<String>>(msg: S, t: ErrorType) -> Self[src]

pub fn wrap_cause(self, cause: Box<dyn Error>) -> Self[src]

pub fn to_boxed(self) -> Box<Self>[src]

Trait Implementations

impl Debug for BuildError[src]

impl Display for BuildError[src]

impl Error for BuildError[src]

impl<'a, C> From<&'a Error<C>> for BuildError where
    C: FilePositioned + 'a,
    C: Offsetable + Debug
[src]

impl<'a, C> From<Error<C>> for BuildError where
    C: FilePositioned + 'a,
    C: Offsetable + Debug
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.