This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
DOMError in DOM4 seems to be useless. One could just use a string value. Currently one needs to do filereader.error.name to check the error, filereader.error would be simpler.
The idea is to have a place to stick details about the error in the future. So FileReader.error.bytes could return the set of bytes which wasn't possible to decode using the selected text decoder. Or IDBRequest.error.index could return the name of the specific index whose 'unique' constraint was violated. These would of course be properties on subclasses of DOMError, and not added to DOMError directly.
Ok, that makes sense.