W3cubDocs

/Haxe JavaScript

DOMException

package js.html

Available on js

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 also:

Static variables

staticinlineread onlyABORT_ERR:Int = 20

staticinlineread onlyDATA_CLONE_ERR:Int = 25

staticinlineread onlyDOMSTRING_SIZE_ERR:Int = 2

staticinlineread onlyHIERARCHY_REQUEST_ERR:Int = 3

staticinlineread onlyINDEX_SIZE_ERR:Int = 1

staticinlineread onlyINUSE_ATTRIBUTE_ERR:Int = 10

staticinlineread onlyINVALID_ACCESS_ERR:Int = 15

staticinlineread onlyINVALID_CHARACTER_ERR:Int = 5

staticinlineread onlyINVALID_MODIFICATION_ERR:Int = 13

staticinlineread onlyINVALID_NODE_TYPE_ERR:Int = 24

staticinlineread onlyINVALID_STATE_ERR:Int = 11

staticinlineread onlyNAMESPACE_ERR:Int = 14

staticinlineread onlyNETWORK_ERR:Int = 19

staticinlineread onlyNOT_FOUND_ERR:Int = 8

staticinlineread onlyNOT_SUPPORTED_ERR:Int = 9

staticinlineread onlyNO_DATA_ALLOWED_ERR:Int = 6

staticinlineread onlyNO_MODIFICATION_ALLOWED_ERR:Int = 7

staticinlineread onlyQUOTA_EXCEEDED_ERR:Int = 22

staticinlineread onlySECURITY_ERR:Int = 18

staticinlineread onlySYNTAX_ERR:Int = 12

staticinlineread onlyTIMEOUT_ERR:Int = 23

staticinlineread onlyTYPE_MISMATCH_ERR:Int = 17

staticinlineread onlyURL_MISMATCH_ERR:Int = 21

staticinlineread onlyVALIDATION_ERR:Int = 16

staticinlineread onlyWRONG_DOCUMENT_ERR:Int = 4

Constructor

new(message:String = "", ?name:String)

Throws:

null

DOMError

Variables

read onlycode: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.

read onlycolumnNumber:Int

read onlydata:Dynamic

read onlyfilename:String

read onlylineNumber:Int

read onlymessage:String

Returns a DOMString representing a message or description associated with the given error name.

read onlyname:String

Returns a DOMString that contains one of the strings associated with an error name.

read onlyresult:Int

read onlystack:String

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMException.html