pub enum Error {
Show 26 variants
IndexSize,
NotFound,
HierarchyRequest,
WrongDocument,
InvalidCharacter,
NotSupported,
InUseAttribute,
InvalidState,
Syntax,
Namespace,
InvalidAccess,
Security,
Network,
Abort,
Timeout,
InvalidNodeType,
DataClone,
NoModificationAllowed,
QuotaExceeded,
TypeMismatch,
InvalidModification,
NotReadable,
Operation,
Type(String),
Range(String),
JSFailed,
}
Expand description
DOM exceptions that can be thrown by a native DOM method.
Variants§
IndexSize
IndexSizeError DOMException
NotFound
NotFoundError DOMException
HierarchyRequest
HierarchyRequestError DOMException
WrongDocument
WrongDocumentError DOMException
InvalidCharacter
InvalidCharacterError DOMException
NotSupported
NotSupportedError DOMException
InUseAttribute
InUseAttributeError DOMException
InvalidState
InvalidStateError DOMException
Syntax
SyntaxError DOMException
Namespace
NamespaceError DOMException
InvalidAccess
InvalidAccessError DOMException
Security
SecurityError DOMException
Network
NetworkError DOMException
Abort
AbortError DOMException
Timeout
TimeoutError DOMException
InvalidNodeType
InvalidNodeTypeError DOMException
DataClone
DataCloneError DOMException
NoModificationAllowed
NoModificationAllowedError DOMException
QuotaExceeded
QuotaExceededError DOMException
TypeMismatch
TypeMismatchError DOMException
InvalidModification
InvalidModificationError DOMException
NotReadable
NotReadableError DOMException
Operation
OperationError DOMException
Type(String)
TypeError JavaScript Error
Range(String)
RangeError JavaScript Error
JSFailed
A JavaScript exception is already pending.
Implementations§
source§impl Error
impl Error
sourcepub unsafe fn to_jsval(
self,
cx: *mut JSContext,
global: &GlobalScope,
rval: MutableHandleValue<'_>
)
pub unsafe fn to_jsval(
self,
cx: *mut JSContext,
global: &GlobalScope,
rval: MutableHandleValue<'_>
)
Convert this error value to a JS value, consuming it in the process.