#88: Feedback on DOMError -> DOMException in Indexed DB

Visit on Github.

Opened Oct 15, 2015

Based on the general guidance "DOMError is dead, use DOMException instead", in the Indexed DB "Second Edition" we've basically done a s/DOMError/DOMException/g find/replace. This should not impact most scripts, since the attributes present on DOMError (name, message) are present in DOMException. The only impact would be scripts that do instanceof tests on the type of the object.

There's been feedback that this might seem a bit odd, as it's the first place that DOMExceptions surface as attribute values rather than as thrown exceptions/promise rejections. Also, they aren't subclassed as e.g. IDBError or anything fancy like that.

TAG, what say you?

Discussions