DOMException class

The interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs. Each exception has a name, which is a short "PascalCase"-style string identifying the error or abnormal condition.

Implementers
Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

DOMException([String? message = '', String? name = 'Error'])
factory

Properties

code → int

Available on DOMException, provided by the PropsDOMException extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
message → String

Available on DOMException, provided by the PropsDOMException extension

no setter
name → String

Available on DOMException, provided by the PropsDOMException extension

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

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 → int
no setter
dataCloneErr → int
no setter
domstringSizeErr → int
no setter
hierarchyRequestErr → int
no setter
indexSizeErr → int
no setter
inuseAttributeErr → int
no setter
invalidAccessErr → int
no setter
invalidCharacterErr → int
no setter
invalidModificationErr → int
no setter
invalidNodeTypeErr → int
no setter
invalidStateErr → int
no setter
namespaceErr → int
no setter
networkErr → int
no setter
noDataAllowedErr → int
no setter
noModificationAllowedErr → int
no setter
notFoundErr → int
no setter
notSupportedErr → int
no setter
quotaExceededErr → int
no setter
securityErr → int
no setter
syntaxErr → int
no setter
timeoutErr → int
no setter
typeMismatchErr → int
no setter
urlMismatchErr → int
no setter
validationErr → int
no setter
wrongDocumentErr → int
no setter