#[repr(u32)]pub enum JSExnType {
Show 16 variants
JSEXN_ERR = 0,
JSEXN_INTERNALERR = 1,
JSEXN_AGGREGATEERR = 2,
JSEXN_EVALERR = 3,
JSEXN_RANGEERR = 4,
JSEXN_REFERENCEERR = 5,
JSEXN_SYNTAXERR = 6,
JSEXN_TYPEERR = 7,
JSEXN_URIERR = 8,
JSEXN_DEBUGGEEWOULDRUN = 9,
JSEXN_WASMCOMPILEERROR = 10,
JSEXN_WASMLINKERROR = 11,
JSEXN_WASMRUNTIMEERROR = 12,
JSEXN_ERROR_LIMIT = 13,
JSEXN_NOTE = 14,
JSEXN_LIMIT = 15,
}
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 = 0
JSEXN_INTERNALERR = 1
JSEXN_AGGREGATEERR = 2
JSEXN_EVALERR = 3
JSEXN_RANGEERR = 4
JSEXN_REFERENCEERR = 5
JSEXN_SYNTAXERR = 6
JSEXN_TYPEERR = 7
JSEXN_URIERR = 8
JSEXN_DEBUGGEEWOULDRUN = 9
JSEXN_WASMCOMPILEERROR = 10
JSEXN_WASMLINKERROR = 11
JSEXN_WASMRUNTIMEERROR = 12
JSEXN_ERROR_LIMIT = 13
JSEXN_NOTE = 14
JSEXN_LIMIT = 15
Implementations§
Trait Implementations§
impl Copy for JSExnType
impl Eq for JSExnType
impl StructuralPartialEq for JSExnType
Auto Trait Implementations§
impl Freeze for JSExnType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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