Struct liquid::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Compiler error
Methods
impl Error
[src]
pub fn with_msg<S: Into<Cow<'static, str>>>(msg: S) -> Self
[src]
Create a new compiler error with the given message
pub fn trace<T: Into<Trace>>(self, trace: T) -> Self
[src]
Add a new call to the user-visible backtrace
pub fn context<C, S>(self, key: C, value: &S) -> Self where
C: Into<Cow<'static, str>>,
S: ToString,
[src]
C: Into<Cow<'static, str>>,
S: ToString,
Add context to the last traced call.
Example context: Value that parameters from ehe trace
evaluate to.
pub fn cause<E: Error + 'static + Send>(self, cause: E) -> Self
[src]
Add an external cause to the error for debugging purposes.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more