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 an invalid node type
10: * definition template.
11: *
12: * @since JCR 2.0
13: */
14: public class InvalidNodeTypeDefinitionException extends
15: RepositoryException {
16: /**
17: * Constructs a new instance of this class with <code>null</code> as its
18: * detail message.
19: */
20: public InvalidNodeTypeDefinitionException() {
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 InvalidNodeTypeDefinitionException(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 InvalidNodeTypeDefinitionException(String message,
44: Throwable rootCause) {
45: super (message, rootCause);
46: }
47:
48: /**
49: * Constructs a new instance of this class with the specified root cause.
50: *
51: * @param rootCause root failure cause
52: */
53: public InvalidNodeTypeDefinitionException(Throwable rootCause) {
54: super(rootCause);
55: }
56: }
|