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: Vincent Scheib via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jun 2015 19:30:51 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-110886208-1433964650-sysbot+gh@w3.org>
`InvalidStateError` sounds reasonable to me.

A related Apps will receive an event `serviceremoved` or 
`servicechanged`, and can then update any references to objects which 
are no longer valid, and thus could be written to avoid dealing with 
this exception what so ever. However, should they fail to do so 
`InvalidStateError` is good.

-- 
GitHub Notif of comment by scheib
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/130#issuecomment-110886208
Received on Wednesday, 10 June 2015 19:30:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 June 2015 19:30:53 UTC