W3C home > Mailing lists > Public > public-ddwg@w3.org > June 2007

RE: ISSUE-13: [API] Exception codes

From: Rodrigo Garcia Acevedo <rodrigo.garcia@fundacionctic.org>
Date: Wed, 13 Jun 2007 18:42:16 +0200
Message-ID: <09700B613C4DD84FA9F2FEA521882819973C22@ayalga.fundacionctic.org>
To: <public-ddwg@w3.org>
I agree too, updating the API means that we could extend the enum entries and I also see the enum choice as more 'elegant'.
But I also think that the use of an unsigned short code could be easier to handle and that it is less likely that a legacy app could break if a new code is added (probably it would fall in the default section of a switch). IDL enums don't have an associated ordinal so its representation changes in the different language mappings (some languages could map each entry to a class, others directly to a typed enum, an int...) so maybe its handling would be more difficult.

Anyway, I also wonder whether they would have done the same. The restriction about the use of exception inheritance is unfortunate.

Regards,
Rodrigo.
Received on Wednesday, 13 June 2007 16:42:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 12:13:51 GMT