01: package org.garret.perst.continuous;
02:
03: /**
04: * Exception thrown when conflict is detected during transaction commit
05: */
06: public class ConflictException extends ContinuousException {
07: CVersion v;
08:
09: /**
10: * Get version which is conflicted with version previously committed by another transaction
11: */
12: public CVersion getVersion() {
13: return v;
14: }
15:
16: ConflictException(CVersion v) {
17: super ("Version conflict detected");
18: this.v = v;
19: }
20: }
|