pub enum LanguageError {
ParseError {
expr: String,
reason: String,
},
EvalError(String),
UnknownVariable(String),
NotFound(String),
NotSupported {
feature: String,
language: String,
},
}Variants§
Implementations§
Source§impl LanguageError
impl LanguageError
Sourcepub fn eval_error(expr: &str, message: impl Display) -> Self
pub fn eval_error(expr: &str, message: impl Display) -> Self
Create an EvalError that includes the expression being evaluated.
This preserves the expression context in the error message for easier debugging.
Trait Implementations§
Source§impl Debug for LanguageError
impl Debug for LanguageError
Source§impl Display for LanguageError
impl Display for LanguageError
Source§impl Error for LanguageError
impl Error for LanguageError
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 Freeze for LanguageError
impl RefUnwindSafe for LanguageError
impl Send for LanguageError
impl Sync for LanguageError
impl Unpin for LanguageError
impl UnsafeUnpin for LanguageError
impl UnwindSafe for LanguageError
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