01: package javax.jcr.security;
02:
03: import javax.jcr.RepositoryException;
04:
05: /**
06: * Exception thrown by
07: * {@link AccessControlManager#addAccessControlEntry(String, java.security.Principal, Privilege[])}.
08: *
09: * @since JCR 2.0
10: */
11: public class PrincipalNotFoundException extends RepositoryException {
12: /**
13: * Constructs a new instance of this class with <code>null</code> as its
14: * detail message.
15: */
16: public PrincipalNotFoundException() {
17: super ();
18: }
19:
20: /**
21: * Constructs a new instance of this class with the specified detail
22: * message.
23: *
24: * @param message the detail message. The detail message is saved for
25: * later retrieval by the {@link #getMessage()} method.
26: */
27: public PrincipalNotFoundException(String message) {
28: super (message);
29: }
30:
31: /**
32: * Constructs a new instance of this class with the specified detail
33: * message and root cause.
34: *
35: * @param message the detail message. The detail message is saved for
36: * later retrieval by the {@link #getMessage()} method.
37: * @param rootCause root failure cause
38: */
39: public PrincipalNotFoundException(String message,
40: 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 PrincipalNotFoundException(Throwable rootCause) {
50: super(rootCause);
51: }
52: }
|