[][src]Enum bracket::error::render::RenderError

pub enum RenderError {
    PartialNotFound(String),
    VariableNotFound(String),
    HelperNotFound(String),
    EvaluatePath(String),
    PartialCycle(String),
    HelperCycle(String),
    PartialIdentifier(String),
    BlockIdentifier(String),
    BlockTargetSubExpr,
    Helper(HelperError),
    Io(IoError),
    Json(Error),
}

Errors generated during rendering.

Variants

PartialNotFound(String)

Error when a partial could not be found.

VariableNotFound(String)

Error when a variable could not be resolved.

HelperNotFound(String)

Error when a helper could not be found.

EvaluatePath(String)

Error when evaluating a path and a syntax error occurs.

Paths can be dynamically evaluated when the evaluate() function is called inside a helper.

PartialCycle(String)

Error when a cycle is detected whilst handling a partial.

HelperCycle(String)

Error when a cycle is detected whilst handling a helper.

PartialIdentifier(String)

Error when a partial is not a simple identifier.

BlockIdentifier(String)

Error when a block is not a simple identifier.

BlockTargetSubExpr

Error attempting to invoke a sub-expression outside of a partial target context.

Helper(HelperError)

Wrap a helper error.

Proxy for IO errors.

Json(Error)

Proxy for JSON errors.

Trait Implementations

impl Debug for RenderError[src]

impl Display for RenderError[src]

impl Eq for RenderError[src]

impl Error for RenderError[src]

impl From<Error> for RenderError[src]

impl From<Error> for RenderError[src]

impl From<HelperError> for RenderError[src]

impl From<IoError> for RenderError[src]

impl From<RenderError> for Error[src]

impl PartialEq<RenderError> for RenderError[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.