View Javadoc

1   /*
2    * 
3    * $Revision: 1.3 $
4    * $Date: 2004/06/20 12:18:39 $
5    *
6    * ====================================================================
7    * struts-it
8    * Copyright (C) 2004 - strutsit community
9    * 
10   * Licensed under the Apache License, Version 2.0 (the "License");
11   * you may not use this file except in compliance with the License.
12   * You may obtain a copy of the License at
13   * 
14   *      http://www.apache.org/licenses/LICENSE-2.0
15   * 
16   * Unless required by applicable law or agreed to in writing, software
17   * distributed under the License is distributed on an "AS IS" BASIS,
18   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   * See the License for the specific language governing permissions and
20   * limitations under the License.
21   *
22   * created: 2004-06-05  Manfred Wolff
23   */
24  package org.strutsit.chain;
25  
26  /***
27   * An exception type for the chain-conf framework. The whole framework should
28   * only throw this exception.
29   * 
30   * @author <a href="mailto:wolff@struts-it.de">Manfred Wolff </a>
31   * @since JDK 1.4
32   * @version $Revision: 1.3 $
33   */
34  public class ChainException extends Exception {
35  
36      /***
37       * Constructs a new exception with null as its detail message.
38       */
39      public ChainException() {
40          super();
41      }
42  
43      /***
44       * Constructs a new exception with the specified detail message.
45       * 
46       * @param message
47       *            Message of this exception.
48       */
49      public ChainException(String message) {
50          super(message);
51      }
52  
53      /***
54       * Constructs a new exception with the specified detail message and cause.
55       * 
56       * @param message
57       *            Message of this exception.
58       * @param cause
59       *            cause of this exception
60       */
61      public ChainException(String message, Throwable cause) {
62          super(message, cause);
63      }
64  
65      /***
66       * Constructs a new exception with the specified cause and a detail message
67       * of (cause==null ? null : cause.toString()) (which typically contains the
68       * class and detail message of cause).
69       * 
70       * @param cause
71       *            The cause of this exception.
72       */
73      public ChainException(Throwable cause) {
74          super(cause);
75      }
76  }