Struct liquid_core::error::Error
source · pub struct Error { /* private fields */ }
Expand description
Compiler error
Implementations§
source§impl Error
impl Error
sourcepub fn with_msg<S: Into<KString>>(msg: S) -> Self
pub fn with_msg<S: Into<KString>>(msg: S) -> Self
Create a new compiler error with the given message
sourcepub fn trace<T>(self, trace: T) -> Selfwhere
T: Into<KString>,
pub fn trace<T>(self, trace: T) -> Selfwhere T: Into<KString>,
Add a new call to the user-visible backtrace
sourcepub fn context<K, V>(self, key: K, value: V) -> Selfwhere
K: Into<KString>,
V: Into<KString>,
pub fn context<K, V>(self, key: K, value: V) -> Selfwhere K: Into<KString>, V: Into<KString>,
Add context to the last traced call.
Example context: Value that parameters from the trace
evaluate to.
sourcepub fn cause<E: ErrorClone>(self, cause: E) -> Self
pub fn cause<E: ErrorClone>(self, cause: E) -> Self
Add an external cause to the error for debugging purposes.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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