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