DOMException class

An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.

MDN Reference

Implemented types
Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

DOMException([String? message, String? name])
factory

Properties

abortErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
cause Object?

Available on Error, provided by the Error$Typings extension

getter/setter pair
code num

Available on DOMException, provided by the DOMException$Typings extension

no setter
dataCloneErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
domstringSizeErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
hashCode int
The hash code for this object.
no setterinherited
hierarchyRequestErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
indexSizeErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
inuseAttributeErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
invalidAccessErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
invalidCharacterErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
invalidModificationErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
invalidNodeTypeErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
invalidStateErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
message String

Available on Error, provided by the Error$Typings extension

getter/setter pair
message String

Available on DOMException, provided by the DOMException$Typings extension

MDN Reference
no setter
name String

Available on DOMException, provided by the DOMException$Typings extension

MDN Reference
no setter
name String

Available on Error, provided by the Error$Typings extension

getter/setter pair
namespaceErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
networkErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
noDataAllowedErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
noModificationAllowedErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
notFoundErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
notSupportedErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
quotaExceededErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
stack String?

Available on Error, provided by the Error$Typings extension

getter/setter pair
syntaxErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
timeoutErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
typeMismatchErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
urlMismatchErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
validationErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter
wrongDocumentErr num

Available on DOMException, provided by the DOMException$Typings extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

abortErr num
no setter
dataCloneErr num
no setter
domstringSizeErr num
no setter
hierarchyRequestErr num
no setter
indexSizeErr num
no setter
inuseAttributeErr num
no setter
invalidAccessErr num
no setter
invalidCharacterErr num
no setter
invalidModificationErr num
no setter
invalidNodeTypeErr num
no setter
invalidStateErr num
no setter
namespaceErr num
no setter
networkErr num
no setter
noDataAllowedErr num
no setter
noModificationAllowedErr num
no setter
notFoundErr num
no setter
notSupportedErr num
no setter
quotaExceededErr num
no setter
securityErr num
no setter
syntaxErr num
no setter
timeoutErr num
no setter
typeMismatchErr num
no setter
urlMismatchErr num
no setter
validationErr num
no setter
wrongDocumentErr num
no setter