01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.nodetype;
05:
06: import javax.jcr.RepositoryException;
07:
08: /**
09: * Exception thrown when an attempt is made to register a node type that already exisits,
10: * and <code>allowUpdate</code> has not been set to <code>true</code>.
11: *
12: * @since JCR 2.0
13: */
14: public class NodeTypeExistsException extends RepositoryException {
15: /**
16: * Constructs a new instance of this class with <code>null</code> as its
17: * detail message.
18: */
19: public NodeTypeExistsException() {
20: super ();
21: }
22:
23: /**
24: * Constructs a new instance of this class with the specified detail
25: * message.
26: *
27: * @param message the detail message. The detail message is saved for
28: * later retrieval by the {@link #getMessage()} method.
29: */
30: public NodeTypeExistsException(String message) {
31: super (message);
32: }
33:
34: /**
35: * Constructs a new instance of this class with the specified detail
36: * message and root cause.
37: *
38: * @param message the detail message. The detail message is saved for
39: * later retrieval by the {@link #getMessage()} method.
40: * @param rootCause root failure cause
41: */
42: public NodeTypeExistsException(String message, 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 NodeTypeExistsException(Throwable rootCause) {
52: super(rootCause);
53: }
54: }
|