W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2013

Re: Error handling - what to change

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Thu, 18 Apr 2013 11:30:43 +0200
Message-ID: <516FBD43.5030103@ericsson.com>
To: public-media-capture@w3.org
On 2013-04-17 14:34, Anne van Kesteren wrote:
> On Wed, Apr 17, 2013 at 1:02 PM, Harald Alvestrand <harald@alvestrand.no> wrote:
>> - Change the NavigatorUserMediaError to be a subclass of DOMError. This
>> means just that the “name” attribute is specified in the superclass.
>> “message” is referred to, but not defined in, DOMError, so its status seems
>> unclear. If this is deemed to be present, the only extra attribute is
>> “constraintName”, which is gUM specific.
>
> It seems everyone wants .message. We can add that to DOM.
>
>
>> - Change the enum NavigatorUserMediaErrorName to have error names in the
>> style of section 3.4 of the DOM spec: CamelCase with uppercase initial.
>> - Ask the DOM team to add PermissionDenied and ConstraintNotSatisfied to
>> their error list (per their expressed desire). No corresponding code.
>
> All our names end in Error at the moment. Not sure if we want to break
> that convention.
>
>
> Looks pretty good otherwise.

I also think this looks good.

Stefan

>
>
> --
> http://annevankesteren.nl/
>
Received on Thursday, 18 April 2013 09:31:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:40 UTC