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