Struct liquid_interpreter::value::error::Error
source · pub struct Error { /* private fields */ }
Expand description
Compiler error
Implementations§
source§impl Error
impl Error
sourcepub fn with_msg<S>(msg: S) -> Errorwhere
S: Into<Cow<'static, str>>,
pub fn with_msg<S>(msg: S) -> Errorwhere
S: Into<Cow<'static, str>>,
Create a new compiler error with the given message
sourcepub fn trace<T>(self, trace: T) -> Errorwhere
T: Into<Cow<'static, str>>,
pub fn trace<T>(self, trace: T) -> Errorwhere
T: Into<Cow<'static, str>>,
Add a new call to the user-visible backtrace
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting