pub enum ContextWeaverError {
MetaParse {
entry_path: String,
message: String,
},
TemplateParse {
entry_id: String,
errors: Vec<ParseError>,
},
Eval {
entry_id: String,
source: EvalError,
},
RecursionLimit {
entry_id: String,
depth: usize,
},
Io(Error),
PluginHook {
plugin: String,
hook: &'static str,
source: HookError,
},
}Variants§
MetaParse
Failed to parse an entry’s frontmatter.
TemplateParse
Failed to parse an entry’s weaver-lang body.
Eval
Failed during template evaluation.
RecursionLimit
A document reference hit the recursion limit.
Io(Error)
I/O error loading lorebook files.
PluginHook
Trait Implementations§
Source§impl Debug for ContextWeaverError
impl Debug for ContextWeaverError
Source§impl Display for ContextWeaverError
impl Display for ContextWeaverError
Source§impl Error for ContextWeaverError
impl Error for ContextWeaverError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for ContextWeaverError
impl !UnwindSafe for ContextWeaverError
impl Freeze for ContextWeaverError
impl Send for ContextWeaverError
impl Sync for ContextWeaverError
impl Unpin for ContextWeaverError
impl UnsafeUnpin for ContextWeaverError
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