pub struct Error(/* private fields */);
Expand description
A reference to a JavaScript Error
object. An Error
is thrown whenever a run-time error
occurs.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl From<AbortError> for Error
impl From<AbortError> for Error
Source§fn from(value: AbortError) -> Self
fn from(value: AbortError) -> Self
Converts to this type from the input type.
Source§impl From<DomException> for Error
impl From<DomException> for Error
Source§fn from(value: DomException) -> Self
fn from(value: DomException) -> Self
Converts to this type from the input type.
Source§impl From<HierarchyRequestError> for Error
impl From<HierarchyRequestError> for Error
Source§fn from(value: HierarchyRequestError) -> Self
fn from(value: HierarchyRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IndexSizeError> for Error
impl From<IndexSizeError> for Error
Source§fn from(value: IndexSizeError) -> Self
fn from(value: IndexSizeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidAccessError> for Error
impl From<InvalidAccessError> for Error
Source§fn from(value: InvalidAccessError) -> Self
fn from(value: InvalidAccessError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidCharacterError> for Error
impl From<InvalidCharacterError> for Error
Source§fn from(value: InvalidCharacterError) -> Self
fn from(value: InvalidCharacterError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidStateError> for Error
impl From<InvalidStateError> for Error
Source§fn from(value: InvalidStateError) -> Self
fn from(value: InvalidStateError) -> Self
Converts to this type from the input type.
Source§impl From<NotFoundError> for Error
impl From<NotFoundError> for Error
Source§fn from(value: NotFoundError) -> Self
fn from(value: NotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<NotSupportedError> for Error
impl From<NotSupportedError> for Error
Source§fn from(value: NotSupportedError) -> Self
fn from(value: NotSupportedError) -> Self
Converts to this type from the input type.
Source§impl From<SecurityError> for Error
impl From<SecurityError> for Error
Source§fn from(value: SecurityError) -> Self
fn from(value: SecurityError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for Error
impl From<SyntaxError> for Error
Source§fn from(value: SyntaxError) -> Self
fn from(value: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl InstanceOf for Error
impl InstanceOf for Error
Source§impl ReferenceType for Error
impl ReferenceType for Error
Source§unsafe fn from_reference_unchecked(reference: Reference) -> Self
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!
Source§impl TryFrom<Error> for AbortError
impl TryFrom<Error> for AbortError
Source§impl TryFrom<Error> for DomException
impl TryFrom<Error> for DomException
Source§impl TryFrom<Error> for HierarchyRequestError
impl TryFrom<Error> for HierarchyRequestError
Source§impl TryFrom<Error> for IndexSizeError
impl TryFrom<Error> for IndexSizeError
Source§impl TryFrom<Error> for InvalidAccessError
impl TryFrom<Error> for InvalidAccessError
Source§impl TryFrom<Error> for InvalidCharacterError
impl TryFrom<Error> for InvalidCharacterError
Source§impl TryFrom<Error> for InvalidStateError
impl TryFrom<Error> for InvalidStateError
Source§impl TryFrom<Error> for NotFoundError
impl TryFrom<Error> for NotFoundError
Source§impl TryFrom<Error> for NotSupportedError
impl TryFrom<Error> for NotSupportedError
Source§impl TryFrom<Error> for SecurityError
impl TryFrom<Error> for SecurityError
Source§impl TryFrom<Error> for SyntaxError
impl TryFrom<Error> for SyntaxError
impl Eq for Error
impl JsSerialize for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)