[][src]Enum ecmascript::compiler::value::NativeError

pub enum NativeError {
    Error(String),
    SyntaxError(String),
    EvalError {
        line_number: usize,
        column_number: usize,
        native_error: Box<NativeError>,
    },
    RangeError(String),
    ReferenceError(String),
    TypeError(String),
    URIError(String),
    InternalError(String),
}

Variants

Error(String)SyntaxError(String)EvalError

This exception is not currently used within this specification. This object remains for compatibility with previous editions of this specification.

Fields of EvalError

line_number: usizecolumn_number: usizenative_error: Box<NativeError>
RangeError(String)ReferenceError(String)TypeError(String)URIError(String)InternalError(String)

Methods

impl NativeError[src]

pub fn error<T: Into<String>>(message: T) -> Self[src]

pub fn syntax_error<T: Into<String>>(message: T) -> Self[src]

pub fn eval_error<T: Into<String>>(message: T) -> Self[src]

pub fn range_error<T: Into<String>>(message: T) -> Self[src]

pub fn reference_error<T: Into<String>>(message: T) -> Self[src]

pub fn type_error<T: Into<String>>(message: T) -> Self[src]

pub fn uri_error<T: Into<String>>(message: T) -> Self[src]

pub fn internal_error<T: Into<String>>(message: T) -> Self[src]

Trait Implementations

impl Display for NativeError[src]

impl Debug for NativeError[src]

Auto Trait Implementations

impl Send for NativeError

impl Sync for NativeError

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]