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

Re: PositionError Requests

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Wed, 29 Oct 2008 17:56:59 +0200
Message-ID: <490887CB.7060203@helsinki.fi>
To: Doug Turner <doug.turner@gmail.com>
CC: Andrei Popescu <andreip@google.com>, Greg Bolsinga <bolsinga@apple.com>, olli@pettay.fi, public-geolocation@w3.org

On 10/29/2008 05:34 PM, Doug Turner wrote:
>
> I recommend making UNKNOWN being 1 because we have no idea how long this
> list will get.
Or it could be 0 too. The interface is called PositionError, so it is about
some error anyway.


>
>
> On Oct 29, 2008, at 6:33 AM, Andrei Popescu wrote:
>
>>
>> Hi Greg!
>>
>> On Tue, Oct 28, 2008 at 6:18 PM, Greg Bolsinga <bolsinga@apple.com>
>> wrote:
>>>
>>> Hello --
>>>
>>> I'd like to request an error code 5, UNKNOWN. There are certain
>>> errors that
>>> may occur that are not covered by any of the error codes listed.
>>> Generally
>>> these can be when the native implementation can't determine the correct
>>> things about the JS code given. You can search for UNKNOWN_ERROR in
>>> the last
>>> patch to https://bugs.webkit.org/show_bug.cgi?id=21475 for some
>>> examples.
>>>
>>
>> Sounds fine to me.
>>
>>> I'd also like to request that the errors have names, such as
>>> suggested by
>>> Olli Pettay on October 15 on this email list.
>>>
>>
>> Ok, how about this:
>>
>> interface PositionError {
>> const unsigned short PERMISSION_ERROR = 1;
>> const unsigned short PROVIDER_ERROR = 2;
>> const unsigned short NOT_FOUND = 3;
>> const unsigned short TIMEOUT = 4;
>> const unsigned short UNKNOWN = 5;
>> readonly int code;
>> readonly DOMString message;
>> };
>>
>>
>> All the best,
>> Andrei
>>
>
>
>
Received on Wednesday, 29 October 2008 15:57:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:52 UTC