pub enum RenderError {
PartialNotFound(String),
VariableNotFound(String, String),
HelperNotFound(String),
EvaluatePath(String),
PartialCycle(String),
HelperCycle(String),
PartialIdentifier(String),
BlockIdentifier(String),
BlockTargetSubExpr,
Helper(HelperError),
Io(IoError),
Json(Error),
}
Expand description
Errors generated during rendering.
Variants§
PartialNotFound(String)
Error when a partial could not be found.
VariableNotFound(String, 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.
Io(IoError)
Wrap a syntax error. Proxy for IO errors.
Json(Error)
Proxy for JSON errors.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for RenderError
impl From<Error> for RenderError
Source§impl From<Error> for RenderError
impl From<Error> for RenderError
Source§impl From<HelperError> for RenderError
impl From<HelperError> for RenderError
Source§fn from(source: HelperError) -> Self
fn from(source: HelperError) -> Self
Converts to this type from the input type.
Source§impl From<IoError> for RenderError
impl From<IoError> for RenderError
Source§impl From<RenderError> for Error
impl From<RenderError> for Error
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
impl Eq for RenderError
Auto Trait Implementations§
impl Freeze for RenderError
impl !RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl !UnwindSafe for RenderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more