View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License")
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
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  
17  package org.apache.commons.configuration;
18  
19  import org.apache.commons.lang.exception.NestableException;
20  
21  /***
22   * Any exception that occurs while initializing a Configuration
23   * object.
24   *
25   * @author Eric Pugh
26   * @version $Revision$, $Date: 2005-02-26 13:56:39 +0100 (Sat, 26 Feb 2005) $
27   */
28  public class ConfigurationException extends NestableException
29  {
30      /***
31       * Constructs a new <code>ConfigurationException</code> without specified
32       * detail message.
33       */
34      public ConfigurationException()
35      {
36          super();
37      }
38  
39      /***
40       * Constructs a new <code>ConfigurationException</code> with specified
41       * detail message.
42       *
43       * @param message  the error message
44       */
45      public ConfigurationException(String message)
46      {
47          super(message);
48      }
49  
50      /***
51       * Constructs a new <code>ConfigurationException</code> with specified
52       * nested <code>Throwable</code>.
53       *
54       * @param cause  the exception or error that caused this exception to be thrown
55       */
56      public ConfigurationException(Throwable cause)
57      {
58          super(cause);
59      }
60  
61      /***
62       * Constructs a new <code>ConfigurationException</code> with specified
63       * detail message and nested <code>Throwable</code>.
64       *
65       * @param message  the error message
66       * @param cause    the exception or error that caused this exception to be thrown
67       */
68      public ConfigurationException(String message, Throwable cause)
69      {
70          super(message, cause);
71      }
72  }