01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.commons.configuration;
19:
20: import org.apache.commons.lang.exception.NestableException;
21:
22: /**
23: * Any exception that occurs while initializing a Configuration
24: * object.
25: *
26: * @author Eric Pugh
27: * @version $Revision: 439648 $, $Date: 2006-09-02 22:42:10 +0200 (Sa, 02 Sep 2006) $
28: */
29: public class ConfigurationException extends NestableException {
30: /**
31: * The serial version ID.
32: */
33: private static final long serialVersionUID = -1316746661346991484L;
34:
35: /**
36: * Constructs a new <code>ConfigurationException</code> without specified
37: * detail message.
38: */
39: public ConfigurationException() {
40: super ();
41: }
42:
43: /**
44: * Constructs a new <code>ConfigurationException</code> with specified
45: * detail message.
46: *
47: * @param message the error message
48: */
49: public ConfigurationException(String message) {
50: super (message);
51: }
52:
53: /**
54: * Constructs a new <code>ConfigurationException</code> with specified
55: * nested <code>Throwable</code>.
56: *
57: * @param cause the exception or error that caused this exception to be thrown
58: */
59: public ConfigurationException(Throwable cause) {
60: super (cause);
61: }
62:
63: /**
64: * Constructs a new <code>ConfigurationException</code> with specified
65: * detail message and nested <code>Throwable</code>.
66: *
67: * @param message the error message
68: * @param cause the exception or error that caused this exception to be thrown
69: */
70: public ConfigurationException(String message, Throwable cause) {
71: super(message, cause);
72: }
73: }
|