Enum netsblox_vm::runtime::ErrorScheme
source · pub enum ErrorScheme {
Soft,
Hard,
}
Expand description
The error promotion paradigm to use for certain types of runtime errors.
Variants§
Soft
Emit errors as soft errors. This causes the error message to be returned as a Value::String
object,
as well as being stored in a corresponding last-error process-local variable.
Hard
Emit errors as hard errors. This treats certain classes of typically soft errors as hard errors that
must be caught or else terminate the Process
(not the entire VM).
Trait Implementations§
source§impl Clone for ErrorScheme
impl Clone for ErrorScheme
source§fn clone(&self) -> ErrorScheme
fn clone(&self) -> ErrorScheme
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ErrorScheme
Auto Trait Implementations§
impl RefUnwindSafe for ErrorScheme
impl Send for ErrorScheme
impl Sync for ErrorScheme
impl Unpin for ErrorScheme
impl UnwindSafe for ErrorScheme
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