pub enum UpcallError {
Argument(LineCol, String),
Eval(LineCol, String),
IoError(LineCol, String),
Precondition(LineCol, String),
Syntax(LineCol, String),
}Expand description
Error type for uncaught upcall failures.
This should be the same as CallError but with all error variants annotated with a position.
Variants§
Argument(LineCol, String)
Invalid callable argument at a given source location.
Eval(LineCol, String)
Runtime evaluation error at a given source location.
IoError(LineCol, String)
I/O error at a given source location.
Precondition(LineCol, String)
Callable precondition failure at a given source location.
Syntax(LineCol, String)
Runtime syntax error at a specific source location.
Implementations§
Trait Implementations§
Source§impl Debug for UpcallError
impl Debug for UpcallError
Source§impl Display for UpcallError
impl Display for UpcallError
Source§impl Error for UpcallError
impl Error for UpcallError
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 UpcallError
impl RefUnwindSafe for UpcallError
impl Send for UpcallError
impl Sync for UpcallError
impl Unpin for UpcallError
impl UnsafeUnpin for UpcallError
impl UnwindSafe for UpcallError
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