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: * when a specific workspace is not found.
09: */
10: public class NoSuchWorkspaceException extends RepositoryException {
11: /**
12: * Constructs a new instance of this class with <code>null</code> as its
13: * detail message.
14: */
15: public NoSuchWorkspaceException() {
16: super ();
17: }
18:
19: /**
20: * Constructs a new instance of this class with the specified detail
21: * message.
22: *
23: * @param message the detail message. The detail message is saved for
24: * later retrieval by the {@link #getMessage()} method.
25: */
26: public NoSuchWorkspaceException(String message) {
27: super (message);
28: }
29:
30: /**
31: * Constructs a new instance of this class with the specified detail
32: * message and root cause.
33: *
34: * @param message the detail message. The detail message is saved for
35: * later retrieval by the {@link #getMessage()} method.
36: * @param rootCause root failure cause
37: */
38: public NoSuchWorkspaceException(String message, Throwable rootCause) {
39: super (message, rootCause);
40: }
41:
42: /**
43: * Constructs a new instance of this class with the specified root cause.
44: *
45: * @param rootCause root failure cause
46: */
47: public NoSuchWorkspaceException(Throwable rootCause) {
48: super(rootCause);
49: }
50: }
|