[Bug 26776] Diagnosing and resolving CDM errors needs a numeric systemCode (deleted with MediaKeyError)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26776

--- Comment #6 from Anne <annevk@annevk.nl> ---
(In reply to Mark Watson from comment #5)
> I do not see any obvious solution that provides an explicit numeric code
> except subclassing DOMException. Could Anne or David explain in more detail
> why that is bad ?

1) There's no consensus within the standards community as to whether
DOMException in its current form is a good pattern (it does not follow native
JavaScript exceptions very well).

2) DOMException is the only non-native JavaScript exception class we have.

3) There's no support for subclassing exception classes (as you can see in IDL,
it uses "exception", not "interface").

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 17 September 2014 07:37:32 UTC