01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.version;
05:
06: import javax.jcr.RepositoryException;
07:
08: /**
09: * Exception thrown by Version.addSuccessor if an invalid
10: * version graph operation is attempted.
11: *
12: */
13: public class VersionException extends RepositoryException {
14: /**
15: * Constructs a new instance of this class with <code>null</code> as its
16: * detail message.
17: */
18: public VersionException() {
19: super ();
20: }
21:
22: /**
23: * Constructs a new instance of this class with the specified detail
24: * message.
25: *
26: * @param message the detail message. The detail message is saved for
27: * later retrieval by the {@link #getMessage()} method.
28: */
29: public VersionException(String message) {
30: super (message);
31: }
32:
33: /**
34: * Constructs a new instance of this class with the specified detail
35: * message and root cause.
36: *
37: * @param message the detail message. The detail message is saved for
38: * later retrieval by the {@link #getMessage()} method.
39: * @param rootCause root failure cause
40: */
41: public VersionException(String message, Throwable rootCause) {
42: super (message, rootCause);
43: }
44:
45: /**
46: * Constructs a new instance of this class with the specified root cause.
47: *
48: * @param rootCause root failure cause
49: */
50: public VersionException(Throwable rootCause) {
51: super(rootCause);
52: }
53: }
|