#[repr(u32)]pub enum JSExnType {
Show 16 variants
JSEXN_ERR,
JSEXN_INTERNALERR,
JSEXN_AGGREGATEERR,
JSEXN_EVALERR,
JSEXN_RANGEERR,
JSEXN_REFERENCEERR,
JSEXN_SYNTAXERR,
JSEXN_TYPEERR,
JSEXN_URIERR,
JSEXN_DEBUGGEEWOULDRUN,
JSEXN_WASMCOMPILEERROR,
JSEXN_WASMLINKERROR,
JSEXN_WASMRUNTIMEERROR,
JSEXN_ERROR_LIMIT,
JSEXN_NOTE,
JSEXN_LIMIT,
}
Expand description
Possible exception types. These types are part of a JSErrorFormatString structure. They define which error to throw in case of a runtime error.
JSEXN_WARN is used for warnings, that are not strictly errors but are handled using the generalized error reporting mechanism. (One side effect of this type is to not prepend ‘Error:’ to warning messages.) This value can go away if we ever decide to use an entirely separate mechanism for warnings.
Variants§
JSEXN_ERR
JSEXN_INTERNALERR
JSEXN_AGGREGATEERR
JSEXN_EVALERR
JSEXN_RANGEERR
JSEXN_REFERENCEERR
JSEXN_SYNTAXERR
JSEXN_TYPEERR
JSEXN_URIERR
JSEXN_DEBUGGEEWOULDRUN
JSEXN_WASMCOMPILEERROR
JSEXN_WASMLINKERROR
JSEXN_WASMRUNTIMEERROR
JSEXN_ERROR_LIMIT
JSEXN_NOTE
JSEXN_LIMIT
Implementations§
Trait Implementations§
source§impl PartialEq<JSExnType> for JSExnType
impl PartialEq<JSExnType> for JSExnType
impl Copy for JSExnType
impl Eq for JSExnType
impl StructuralEq for JSExnType
impl StructuralPartialEq for JSExnType
Auto Trait Implementations§
impl RefUnwindSafe for JSExnType
impl Send for JSExnType
impl Sync for JSExnType
impl Unpin for JSExnType
impl UnwindSafe for JSExnType
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