W3C home > Mailing lists > Public > public-geolocation@w3.org > October 2008

Re: synchronous error handling.

From: Doug Turner <doug.turner@gmail.com>
Date: Wed, 29 Oct 2008 10:01:48 -0700
Cc: public-geolocation@w3.org
Message-Id: <985CCDE4-FEE5-42B0-A733-466E07EF45B4@gmail.com>
To: Greg Bolsinga <bolsinga@apple.com>

Hi Greg,

I do not think our APIs should throw.  no error callback, no error.

Doug



On Oct 29, 2008, at 9:49 AM, Greg Bolsinga wrote:

>
> FWIW, In the implementation in https://bugs.webkit.org/attachment.cgi?id=24627&action=prettypatch
>
> I implemented it call the error callback before returning from  
> getCurrentPosition and watchPosition. If the caller doesn't supply  
> an errorCallback, the method will return and the caller will not  
> know of this error. Perhaps there can be some kind of an exception  
> thrown?
>
> Any clarity here would be appreciated.
>
> Thanks,
> -- Greg
>
>
Received on Wednesday, 29 October 2008 17:02:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 March 2012 18:13:40 GMT