You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Robert Priest <Ro...@bentley.com> on 2002/03/19 21:22:19 UTC
Both RevisionAlreadyExist and RevisionNotFoundException?
> -----Original Message-----
> From: Robert Priest
> Sent: Tuesday, March 19, 2002 2:53 PM
> To: 'Slide Users Mailing List'
> Subject: Both RevisionAlreadyExist and RevisionNotFoundException?
>
> Can anyone tell me how it is possible that I
> call content.create(), receive a RevisionAlreadyExistException, catch it
> and call content.store() to update rather than create;
> and produce the following error:
>
> org.apache.slide.content.RevisionDescriptorNotFoundException: No revision
> descriptor found on object.
>
>
>
>
> Here is my code:
>
> try
> {
> content.create(slideToken, uri, revisionDescriptor, revisionContent);
> }
> catch(RevisionAlreadyExistException raee)
> {
> System.out.println(" Revision Already created calling
> content.store()");
> content.store(slideToken, uri, revisionDescriptor, revisionContent);
> }
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>