W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > June 2015

Re: [web-bluetooth] Describe what to do if a method is called on a removed attribute

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jun 2015 18:53:49 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-110876530-1433962428-sysbot+gh@w3.org>
How does 
[InvalidStateError](https://heycam.github.io/webidl/#invalidstateerror)
 sound for the "you used a removed attribute" exception? NotFoundError
 is also plausible, but it could be confused with 
[`presentService.getCharacteristic("not_found_uuid")`](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothgattservice-getcharacteristic)
 (which currently returns a 
[SyntaxError](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothuuid-getcharacteristic)
 or `null` or the result of #124).

-- 
GitHub Notif of comment by jyasskin
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/130#issuecomment-110876530
Received on Wednesday, 10 June 2015 18:53:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 June 2015 18:53:51 UTC