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