pub(crate) struct EvalError {
backtrace: Vec<Box<str>>,
pub(crate) error: ErrorType,
}
Fields§
§backtrace: Vec<Box<str>>
§error: ErrorType
Implementations§
Source§impl EvalError
impl EvalError
pub(crate) fn new_error(error: Error) -> Self
pub(crate) fn signal( error_symbol: Gc<ObjectType<'_>>, data: Gc<ObjectType<'_>>, env: &mut Rt<Env<'_>>, ) -> Self
pub(crate) fn throw( tag: Gc<ObjectType<'_>>, data: Gc<ObjectType<'_>>, env: &mut Rt<Env<'_>>, ) -> Self
pub(crate) fn new(error: impl Into<Self>) -> Self
pub(crate) fn with_trace( error: Error, name: &str, args: &[Rt<Slot<Gc<ObjectType<'_>>>>], ) -> Self
pub(crate) fn add_trace( self, name: &str, args: &[Rt<Slot<Gc<ObjectType<'_>>>>], ) -> Self
pub(crate) fn print_backtrace(&self)
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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()
Source§impl From<Infallible> for EvalError
impl From<Infallible> for EvalError
Source§fn from(e: Infallible) -> Self
fn from(e: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnwindSafe for EvalError
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