01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.security;
05:
06: import javax.jcr.RepositoryException;
07:
08: /**
09: * Exception thrown by access control policy-related methods of
10: * <code>AccessControlManager</code>.
11: *
12: * @since JCR 2.0
13: */
14: public class PolicyNotFoundException extends RepositoryException {
15: /**
16: * Constructs a new instance of this class with <code>null</code> as its
17: * detail message.
18: */
19: public PolicyNotFoundException() {
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 PolicyNotFoundException(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 PolicyNotFoundException(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 PolicyNotFoundException(Throwable rootCause) {
52: super(rootCause);
53: }
54: }
|