pub enum RuntimeError {
ArgsBindingError(ArgsBindingError<Context>),
Exit(u8),
Io(Error),
InvalidVTable(Gc<Value<Context>>),
NonexistentVar(Symbol),
NotAFunction(Gc<Value<Context>>),
ObjectDataOutOfBounds(isize, Gc<Value<Context>>),
ObjectNoSuchFunc(Symbol, Gc<Value<Context>>),
Panic(Vec<Gc<Value<Context>>>),
}
Expand description
A runtime error.
Variants§
ArgsBindingError(ArgsBindingError<Context>)
An error binding arguments.
Exit(u8)
Exits with the given exit code.
Io(Error)
An I/O error.
InvalidVTable(Gc<Value<Context>>)
An attempt was made to access a non-existent data member on an object.
NonexistentVar(Symbol)
A variable was used that was not defined.
NotAFunction(Gc<Value<Context>>)
A value that was not a function was called.
ObjectDataOutOfBounds(isize, Gc<Value<Context>>)
An attempt was made to access a non-existent data member on an object.
ObjectNoSuchFunc(Symbol, Gc<Value<Context>>)
An attempt was made to access a non-existent function on an object.
Panic(Vec<Gc<Value<Context>>>)
A runtime panic.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl From<ArgsBindingError<Context>> for RuntimeError
impl From<ArgsBindingError<Context>> for RuntimeError
Source§fn from(err: ArgsBindingError<Context>) -> RuntimeError
fn from(err: ArgsBindingError<Context>) -> RuntimeError
Converts to this type from the input type.
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§fn from(err: IoError) -> RuntimeError
fn from(err: IoError) -> RuntimeError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RuntimeError
impl !RefUnwindSafe for RuntimeError
impl !Send for RuntimeError
impl !Sync for RuntimeError
impl Unpin for RuntimeError
impl !UnwindSafe for RuntimeError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more