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
Constructor
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 onlymessage:String
Returns a DOMString
representing a message or description associated with the given error name.