DOMError and DOMException for JavaScript.