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 <code>VersionHistory.addVersionLabel</code> if <code>moveLabel</code> is set to <code>false</code>
10: * and an attempt is made to add a label that already exists in the <code>VersionHistory</code>.
11: *
12: */
13: public class LabelExistsVersionException extends RepositoryException {
14: /**
15: * Constructs a new instance of this class with <code>null</code> as its
16: * detail message.
17: */
18: public LabelExistsVersionException() {
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 LabelExistsVersionException(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 LabelExistsVersionException(String message,
42: Throwable rootCause) {
43: super (message, rootCause);
44: }
45:
46: /**
47: * Constructs a new instance of this class with the specified root cause.
48: *
49: * @param rootCause root failure cause
50: */
51: public LabelExistsVersionException(Throwable rootCause) {
52: super(rootCause);
53: }
54: }
|