Re: UCP providers: behavior of Content.getPropertyValue() implementation
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 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
UCP providers: behavior of Content.getPropertyValue() implementation
Hi all, 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? Thanks. -- Kind Regards, Giuseppe Castagno Acca Esse http://www.acca-esse.eu giuseppe.castagno at acca-esse.eu ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice