UCP providers: behavior of Content.getPropertyValue() implementation

Stephan Bergmann sbergman at redhat.com
Mon Oct 17 09:16:18 UTC 2016


On 10/14/2016 05:09 PM, Giuseppe Castagno wrote:
> I wonder what would be the right behavior when implementing the code in
> Content.getPropertyValue(); specifically what should be the behavior
> when a client ask for a property of a resource served by the UCP
> provider and there is an error in retrieving the resource (resource
> doesn't exist, communication error, you name it...)?
>
> 1) return an empty property?
> 2) or throw an exception?

css.beans.XPropertySet.getProprtyValue allows for throwing a 
css.lang.WrappedTargetException, so that looks like a natural choice



More information about the LibreOffice mailing list