DOMException
js.html.DOMException (extern class)
The DOMException
interface represents an abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
Documentation DOMException by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Static Members
INDEX_SIZE_ERR: Int
DOMSTRING_SIZE_ERR: Int
HIERARCHY_REQUEST_ERR: Int
WRONG_DOCUMENT_ERR: Int
INVALID_CHARACTER_ERR: Int
NO_DATA_ALLOWED_ERR: Int
NO_MODIFICATION_ALLOWED_ERR: Int
NOT_FOUND_ERR: Int
NOT_SUPPORTED_ERR: Int
INUSE_ATTRIBUTE_ERR: Int
INVALID_STATE_ERR: Int
SYNTAX_ERR: Int
INVALID_MODIFICATION_ERR: Int
NAMESPACE_ERR: Int
INVALID_ACCESS_ERR: Int
VALIDATION_ERR: Int
TYPE_MISMATCH_ERR: Int
SECURITY_ERR: Int
NETWORK_ERR: Int
ABORT_ERR: Int
URL_MISMATCH_ERR: Int
QUOTA_EXCEEDED_ERR: Int
TIMEOUT_ERR: Int
INVALID_NODE_TYPE_ERR: Int
DATA_CLONE_ERR: Int
Instance Members
name: String
Returns a DOMString
that contains one of the strings associated with an error name.
message: String
Returns a DOMString
representing a message or description associated with the given error name.
code: Int
Returns a short
that contains one of the Error codes
, or 0
if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name
attribute.
result: Int
filename: String
lineNumber: Int
columnNumber: Int
data: Dynamic
stack: String
Name | Type | Default |
---|---|---|
message |
String | "" |
name |
String | (optional) |