[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-user
Subject:    RE: Both RevisionAlreadyExist and RevisionNotFoundException?
From:       "Datta, Neela" <Neela.Datta () dialog ! com>
Date:       2002-03-21 23:31:31
[Download RAW message or body]


I posted this question on the mailing list also but didn't get any response
so I am asking you. 
When you created different versions of a text file ( on filesystem )did it
create two files on the filesystem with the contents or did it store the
deltas or differences between the content of two versions.


--Neela


-----Original Message-----
From: Robert Priest [mailto:Robert.Priest@bentley.com]
Sent: Tuesday, March 19, 2002 11:53 AM
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:   <mailto:slide-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:slide-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic