Struct liquid::compiler::Error [−][src]
pub struct Error { /* fields omitted */ }Compiler error
Methods
impl Error[src]
impl Errorpub fn with_msg<S: Into<Cow<'static, str>>>(msg: S) -> Self[src]
pub fn with_msg<S: Into<Cow<'static, str>>>(msg: S) -> SelfCreate a new compiler error with the given message
pub fn trace<T: Into<Trace>>(self, trace: T) -> Self[src]
pub fn trace<T: Into<Trace>>(self, trace: T) -> SelfAdd 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]
pub fn context<C, S>(self, key: C, value: &S) -> Self where
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 + Send + Sync + 'static>(self, cause: E) -> Self[src]
pub fn cause<E: Error + Send + Sync + 'static>(self, cause: E) -> SelfAdd an external cause to the error for debugging purposes.
Trait Implementations
impl Clone for Error[src]
impl Clone for Errorfn clone(&self) -> Error[src]
fn clone(&self) -> ErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for Error[src]
impl Error for Error