01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.directwebremoting.extend;
17:
18: /**
19: * Something has gone wrong while configuring a Container
20: * @author Joe Walker [joe at getahead dot ltd dot uk]
21: */
22: public class ContainerConfigurationException extends RuntimeException {
23: /**
24: * Constructs a new runtime exception with the specified detail message.
25: * The cause is not initialized.
26: * @param message the detail message.
27: */
28: public ContainerConfigurationException(String message) {
29: super (message);
30: }
31:
32: /**
33: * Constructs a new runtime exception with the specified detail message and
34: * cause.
35: * Note that the detail message associated with <code>cause</code> is
36: * not automatically incorporated in this runtime exception's detail message.
37: * @param message the detail message (which is saved for later retrieval
38: * by the {@link #getMessage()} method).
39: * @param cause the cause
40: */
41: public ContainerConfigurationException(String message,
42: Throwable cause) {
43: super (message, cause);
44: }
45:
46: /**
47: * Constructs a new runtime exception with the specified cause and a
48: * detail message of <tt>(cause==null ? null : cause.toString())</tt>
49: * (which typically contains the class and detail message of
50: * <tt>cause</tt>). This constructor is useful for runtime exceptions
51: * that are little more than wrappers for other throwables.
52: * @param cause the cause
53: */
54: public ContainerConfigurationException(Throwable cause) {
55: super(cause);
56: }
57: }
|