DOMException makes use of the implementation's exception handling model. (Where this is not suitable, the implementation should provide an alternative means of indicating the exception.) In ECMAScript, the try/catch construct can be used.
A DOMException will be raised where an operation is impossible to perform. The list below can be extended by the implementation for implementation-specific exceptions.
ExceptionCode identifies the exception condition. DOM Level 2 defines the following ExceptionCode constants (bound as attributes of DOMException in ECMAScript):
Log in or register to write something here or to contact authors.
Need help? email@example.com