Struct stdweb::web::error::Error [−][src]
pub struct Error(_);
A reference to a JavaScript Error
object. An Error
is thrown whenever a run-time error
occurs.
Methods
impl Error
[src]
impl Error
Trait Implementations
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Eq for Error
[src]
impl Eq for Error
impl InstanceOf for Error
[src]
impl InstanceOf for Error
fn instance_of(reference: &Reference) -> bool
[src]
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for Error
[src]
impl AsRef<Reference> for Error
impl ReferenceType for Error
[src]
impl ReferenceType for Error
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<Error> for Reference
[src]
impl From<Error> for Reference
impl TryFrom<Error> for Reference
[src]
impl TryFrom<Error> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Reference> for Error
[src]
impl TryFrom<Reference> for Error
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for Error
[src]
impl<'_r> TryFrom<&'_r Reference> for Error
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Value> for Error
[src]
impl TryFrom<Value> for Error
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: Value) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for Error
[src]
impl<'_r> TryFrom<&'_r Value> for Error
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: &Value) -> Result<Self, Self::Error>
Performs the conversion.
impl JsSerialize for Error
[src]
impl JsSerialize for Error
impl IError for Error
[src]
impl IError for Error
fn message(&self) -> String
[src]
fn message(&self) -> String
Returns a human-readable description of the error. Read more
fn name(&self) -> String
[src]
fn name(&self) -> String
Returns a name specifiying the type of error. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<DomException> for Error
[src]
impl From<DomException> for Error
fn from(value: DomException) -> Self
[src]
fn from(value: DomException) -> Self
Performs the conversion.
impl TryFrom<Error> for DomException
[src]
impl TryFrom<Error> for DomException
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<HierarchyRequestError> for Error
[src]
impl From<HierarchyRequestError> for Error
fn from(value: HierarchyRequestError) -> Self
[src]
fn from(value: HierarchyRequestError) -> Self
Performs the conversion.
impl TryFrom<Error> for HierarchyRequestError
[src]
impl TryFrom<Error> for HierarchyRequestError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<InvalidAccessError> for Error
[src]
impl From<InvalidAccessError> for Error
fn from(value: InvalidAccessError) -> Self
[src]
fn from(value: InvalidAccessError) -> Self
Performs the conversion.
impl TryFrom<Error> for InvalidAccessError
[src]
impl TryFrom<Error> for InvalidAccessError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<NotFoundError> for Error
[src]
impl From<NotFoundError> for Error
fn from(value: NotFoundError) -> Self
[src]
fn from(value: NotFoundError) -> Self
Performs the conversion.
impl TryFrom<Error> for NotFoundError
[src]
impl TryFrom<Error> for NotFoundError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<SecurityError> for Error
[src]
impl From<SecurityError> for Error
fn from(value: SecurityError) -> Self
[src]
fn from(value: SecurityError) -> Self
Performs the conversion.
impl TryFrom<Error> for SecurityError
[src]
impl TryFrom<Error> for SecurityError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<SyntaxError> for Error
[src]
impl From<SyntaxError> for Error
fn from(value: SyntaxError) -> Self
[src]
fn from(value: SyntaxError) -> Self
Performs the conversion.
impl TryFrom<Error> for SyntaxError
[src]
impl TryFrom<Error> for SyntaxError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<IndexSizeError> for Error
[src]
impl From<IndexSizeError> for Error
fn from(value: IndexSizeError) -> Self
[src]
fn from(value: IndexSizeError) -> Self
Performs the conversion.
impl TryFrom<Error> for IndexSizeError
[src]
impl TryFrom<Error> for IndexSizeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<InvalidStateError> for Error
[src]
impl From<InvalidStateError> for Error
fn from(value: InvalidStateError) -> Self
[src]
fn from(value: InvalidStateError) -> Self
Performs the conversion.
impl TryFrom<Error> for InvalidStateError
[src]
impl TryFrom<Error> for InvalidStateError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<TypeError> for Error
[src]
impl From<TypeError> for Error
impl TryFrom<Error> for TypeError
[src]
impl TryFrom<Error> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<NotSupportedError> for Error
[src]
impl From<NotSupportedError> for Error
fn from(value: NotSupportedError) -> Self
[src]
fn from(value: NotSupportedError) -> Self
Performs the conversion.
impl TryFrom<Error> for NotSupportedError
[src]
impl TryFrom<Error> for NotSupportedError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<InvalidCharacterError> for Error
[src]
impl From<InvalidCharacterError> for Error
fn from(value: InvalidCharacterError) -> Self
[src]
fn from(value: InvalidCharacterError) -> Self
Performs the conversion.
impl TryFrom<Error> for InvalidCharacterError
[src]
impl TryFrom<Error> for InvalidCharacterError