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. This is basically how error conditions are described in web APIs.
Documentation DOMException by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See: