01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr;
05:
06: /**
07: * Exception thrown by <code>{@link Repository#login(Credentials, String)}</code>
08: * and <code>{@link Session#impersonate(Credentials)}</code> if the specified
09: * credentials are invalid.
10: */
11: public class LoginException extends RepositoryException {
12: /**
13: * Constructs a new instance of this class with <code>null</code> as its
14: * detail message.
15: */
16: public LoginException() {
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 LoginException(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 LoginException(String message, Throwable rootCause) {
40: super (message, rootCause);
41: }
42:
43: /**
44: * Constructs a new instance of this class with the specified root cause.
45: *
46: * @param rootCause root failure cause
47: */
48: public LoginException(Throwable rootCause) {
49: super(rootCause);
50: }
51: }
|