01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr;
05:
06: /**
07: * Exception thrown by the write methods of <code>Node</code> and <code>Property</code>
08: * and by save and refresh if an attempted change would conflict with a
09: * change to the persistent workspace made through another
10: * <code>Session</code>. Also thrown by methods of <code>Node</code> and <code>Property</code> if that
11: * object represents an item that has been removed from the workspace.
12: */
13: public class InvalidItemStateException extends RepositoryException {
14: /**
15: * Constructs a new instance of this class with <code>null</code> as its
16: * detail message.
17: */
18: public InvalidItemStateException() {
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 InvalidItemStateException(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 InvalidItemStateException(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 InvalidItemStateException(Throwable rootCause) {
51: super(rootCause);
52: }
53: }
|