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