An implementation of the standard DOMException and DOMError interface