W3C home > Mailing lists > Public > public-media-annotation@w3.org > November 2009

Re: [mawg] Re: [mawg]Error handling in the API

From: Pierre-Antoine <pierre-antoine.champin@liris.cnrs.fr>
Date: Tue, 17 Nov 2009 16:05:22 +0100
Message-ID: <4B02BBB2.5080102@liris.cnrs.fr>
To: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
CC: Chris.Poppe@ugent.be, public-media-annotation@w3.org
Le 17/11/2009 10:59, Silvia Pfeiffer a écrit :
> Hi Chris,
> 
> I'd refrain from anything that can interrupt a program flow. Rather,
> there should be a error code returned (that can be ignored) and then
> if needed that error code can be analysed and evasive action taken.
> Throwing exceptions is a bad design for such an interface.
> 
> BTW: do we have experienced programmers with library API design
> experience on the list? If not, somebody from the jquery community or
> similar could be a great addition at this stage of the process!

+1, that would be great!

anyone in mind? :)

  pa


Received on Tuesday, 17 November 2009 15:05:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 November 2009 15:05:57 GMT