Re: synchronous error handling.

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 UTC