[][src]Struct stdweb::web::error::Error

pub struct Error(_);

A reference to a JavaScript Error object. An Error is thrown whenever a run-time error occurs.

(JavaScript docs)

Methods

impl Error[src]

pub fn new(description: &str) -> Self[src]

Creates a new Error with the specified description.

(JavaScript docs)

Trait Implementations

impl JsSerialize for Error[src]

impl TryFrom<Error> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for Error[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for Error[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for Error[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for Error[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for TypeError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for DomException[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for HierarchyRequestError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for InvalidAccessError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for NotFoundError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for SecurityError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for SyntaxError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for IndexSizeError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for InvalidStateError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for NotSupportedError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for InvalidCharacterError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Error> for AbortError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for Error[src]

impl ReferenceType for Error[src]

impl IError for Error[src]

fn message(&self) -> String[src]

Returns a human-readable description of the error. Read more

fn name(&self) -> String[src]

Returns a name specifiying the type of error. Read more

impl Eq for Error[src]

impl Clone for Error[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Error> for Error[src]

impl AsRef<Reference> for Error[src]

impl From<Error> for Reference[src]

impl From<TypeError> for Error[src]

impl From<DomException> for Error[src]

impl From<HierarchyRequestError> for Error[src]

impl From<InvalidAccessError> for Error[src]

impl From<NotFoundError> for Error[src]

impl From<SecurityError> for Error[src]

impl From<SyntaxError> for Error[src]

impl From<IndexSizeError> for Error[src]

impl From<InvalidStateError> for Error[src]

impl From<NotSupportedError> for Error[src]

impl From<InvalidCharacterError> for Error[src]

impl From<AbortError> for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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