Erik Arvidsson (2013-07-10T19:49:15.000Z)
forbes at lindesay.co.uk (2013-07-12T03:28:30.125Z)
Jonas, DOM never throws DOMError. DOMErrors are used for other error mechanisms, [such as callbacks](http://dom.spec.whatwg.org/#interface-domerror). The DOM spec does however throw [DOMException objects](http://dom.spec.whatwg.org/#exception-domexception). These are instanceof Error (see [WebIDL](http://dev.w3.org/2006/webapi/WebIDL/#es)) ```js var ex; try { document.appendChild(document); } catch (e) { ex = e; } assert(ex instanceof Error); assert(ex.contructor === DOMException); assert(ex.name === 'HierarchyRequestError'); ``` In Blink DOMException also have a stack property ```js assert(stack in ex); ```