chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <>
Subject Re: getContentStream when missing
Date Wed, 15 Sep 2010 12:04:07 GMT
Hi Florent,

I can see that it is more convenient if the getContentStream() would 
return null in this case.

On the hand, the exception could carry important information such as 
what caused the error: the objectId or the streamId. This information 
would be lost.

- Florian

On 14/09/2010 17:20, Florent Guillaume wrote:
> Hi,
> The domain model says that getContentStream should throw a constraint
> exception when there is no content stream.
> For the bindings this should mean CmisConstraintException, although
> the AtomPub bindings currently return a CmisNotSupportedException due
> to the missing link.
> For the session I thing doc.getContentStream() should return null in
> that case instead of throwing, what do you think?
> Florent

View raw message