W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

[IndexedDB] there should not be a message exception field on IDBDatabaseException

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 15 Oct 2011 20:46:49 -0700
Message-ID: <4E9A53A9.8050004@mcc.id.au>
To: public-webapps@w3.org
Web IDL forbids exception fields named "message" (and "name").  This 
property will exist automatically as an own property on the exception 
object if a message is specified when throwing the exception.  So you 
just need to say, for example

   Throw an IDBDatabaseException of type "VersionError" with message "Get
   with the times!".
Received on Sunday, 16 October 2011 03:47:32 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC