W3C home > Mailing lists > Public > public-webrtc@w3.org > October 2013

Re: RTCError, DOMError, and... what happened?

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Fri, 11 Oct 2013 06:45:04 +0000
To: Harald Alvestrand <harald@alvestrand.no>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1C3A269D@ESESSMB209.ericsson.se>
As has been said by others, it has not been so clear on what the DOM 
spec will do about errors. And the DOM4 document has been developed 
outside W3C meaning that there has been difficulties in referencing it.

However, if I understand correctly, DOM4 will be a deliverable of the 
recently rechartered HTML WG. Hopefully this can lead to a clearer 
situation.

Stefan

On 10/11/13 7:11 AM, Harald Alvestrand wrote:
> On 10/10/2013 10:31 PM, Adam Roach wrote:
>> I recently went into the WebRTC spec to look up something regarding
>> error handling, and was quite surprised to find some nontrivial
>> changes to how this is all handled.
>>
>> The first thing that's changed is that the code names have all been
>> converted to camel case. That's fine. I mean, it's purely cosmetic,
>> and it breaks everything, but I guess it's a developing spec, so we
>> can deal with that.
>>
>> What I'm finding a most perplexing, though, is that these were
>> converted to raw DOMErrors, rather than defining RTCError as a
>> subclass of DOMError. In particular, I'm more than a little agitated
>> that we've thrown away our "message" field that we were using before.
>> This provided invaluable diagnostic information for developers.
>
> FWIW, the 2004 (!) version of DOMError contains the "message" field:
>
> http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMError
>
> and is still in the 23 Sep 2013 Anne version (while a lot of other stuff
> in the 2004 version has been thrown away):
>
> http://dom.spec.whatwg.org/#interface-domerror
>
> If he switches to DOMException, and we decide to follow him, we get an
> "exception" object whose definition I can't find at the moment (I think
> it's in the ECMAscript spec), but it's clear from the text in the 23 Sep
> 2013 version that it's expected to have "name" and "message" fields,
> just like DOMError.
>
> The nice thing about standards is that there are so many of them....
>
>> Is there some reason *why* we can't derive RTCError from DOMError in
>> the same way as we're apparently doing for RTCSdpError? (While we're
>> at it, I'll point out that simply saying "something is wrong on line
>> x, you go figure it out" is a bit unsatisfying as well -- we should
>> have a "message" field here as well.)
>>
>> The other thing that makes me a bit sad here is that I can't find any
>> discussion of this error handling change anywhere in the mailing list
>> archives. Did I simply miss this the conversation, or did it result
>> from some non-public exchanges?
>>
>> /a
>>
>
>
> --
> Surveillance is pervasive. Go Dark.
>
Received on Friday, 11 October 2013 06:45:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:36 UTC