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

Re: [API] What should happen if ...

From: Rafael Casero <rcasero@satec.es>
Date: Mon, 02 Jun 2008 18:33:03 +0200
Message-ID: <484420BF.9060605@satec.es>
To: "public-ddwg@w3.org" <public-ddwg@w3.org>
CC: JOSE MANUEL CANTERA FONSECA <jmcf@tid.es>
For me makes sense c) because property is not recognized in the subset 
defined by all the properties that an aspect has, but a) is Ok too.

Raf.Casero

-------- Mensaje Original --------
> 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 16:33:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 June 2008 16:33:45 GMT