Enum js::jsapi::JSExnType
[−]
[src]
#[repr(u32)]pub enum JSExnType { JSEXN_ERR, JSEXN_INTERNALERR, JSEXN_EVALERR, JSEXN_RANGEERR, JSEXN_REFERENCEERR, JSEXN_SYNTAXERR, JSEXN_TYPEERR, JSEXN_URIERR, JSEXN_DEBUGGEEWOULDRUN, JSEXN_WARN, JSEXN_LIMIT, }
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 in js.msg files (for instance because we don't want to 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_EVALERR
JSEXN_RANGEERR
JSEXN_REFERENCEERR
JSEXN_SYNTAXERR
JSEXN_TYPEERR
JSEXN_URIERR
JSEXN_DEBUGGEEWOULDRUN
JSEXN_WARN
JSEXN_LIMIT
Trait Implementations
impl Debug for JSExnType
[src]
impl Copy for JSExnType
[src]
impl Clone for JSExnType
[src]
fn clone(&self) -> JSExnType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for JSExnType
[src]
impl PartialEq for JSExnType
[src]
fn eq(&self, __arg_0: &JSExnType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.