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

Trait Implementations

impl Debug for JSExnType
[src]

[src]

Formats the value using the given formatter.

impl Copy for JSExnType
[src]

impl Clone for JSExnType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for JSExnType
[src]

impl PartialEq for JSExnType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Hash for JSExnType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more