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

[API] What should happen if ...

From: JOSE MANUEL CANTERA FONSECA <jmcf@tid.es>
Date: Mon, 02 Jun 2008 17:50:22 +0200
To: "public-ddwg@w3.org" <public-ddwg@w3.org>
Message-id: <93AA9E47B82F684A868C217766F48905039FA7E3C3@EXCLU2K7.hi.inet>
If a "not making sense" (aspect, property) combination (being 'aspect' and 'property' two recognized elements of a vocabulary) is used for invoking the API, example

Service.getPropertyValue('http://www.w3.org/2008/01/ddr-core-vocabulary', 'webBrowser', 'inputDevices');

Possibilties:

a) NOT_KNOWN exception thrown
b) Aspect not recognized exception thrown, however the aspect actually is a valid aspect for that vocabulary
c) Property not recognized exception thrown, however the property actually is a valid property for that vocabulary

I'm more inclined to say a), however the point is that the combination of aspect & property is not a valid (legal), according to the DDR Core Vocabulary.

I think that an implementation should throw a NAME_EXCEPTION with an error code saying "Aspect, Property combination not valid"

What do others think?

Best Regards
Received on Monday, 2 June 2008 15:51:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 June 2008 15:51:59 GMT