Easy fix tho: just use DOMException :)