01: package org.garret.perst.continuous;
02:
03: /**
04: * Exception thrown when application tries to insert in the database object which is already part of some other version history
05: */
06: public class ObjectAlreadyInsertedException extends ContinuousException {
07: /**
08: * Version which insertion attempt was rejected
09: */
10: public CVersion getVersion() {
11: return v;
12: }
13:
14: ObjectAlreadyInsertedException(CVersion v) {
15: super ("Transaction already started exception");
16: this .v = v;
17: }
18:
19: CVersion v;
20: }
|