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]
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[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 Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Eq for Error
[src]
impl InstanceOf for Error
[src]
fn instance_of(reference: &Reference) -> bool
[src]
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for Error
[src]
impl ReferenceType for Error
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
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 TryFrom<Error> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl TryFrom<Reference> for Error
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for Error
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl TryFrom<Value> for Error
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for Error
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl JsSerialize 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 Display for Error
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<DomException> for Error
[src]
fn from(value: DomException) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for DomException
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<HierarchyRequestError> for Error
[src]
fn from(value: HierarchyRequestError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for HierarchyRequestError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<InvalidAccessError> for Error
[src]
fn from(value: InvalidAccessError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for InvalidAccessError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<NotFoundError> for Error
[src]
fn from(value: NotFoundError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for NotFoundError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<SecurityError> for Error
[src]
fn from(value: SecurityError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for SecurityError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<SyntaxError> for Error
[src]
fn from(value: SyntaxError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for SyntaxError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<IndexSizeError> for Error
[src]
fn from(value: IndexSizeError) -> Self
[src]
Performs the conversion.
impl TryFrom<Error> for IndexSizeError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<TypeError> for Error
[src]
impl TryFrom<Error> for TypeError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<NotSupportedError> for Error
[src]
fn from(value: NotSupportedError) -> Self
[src]
Performs the conversion.