KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > ActionHandlerException


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.controller;
8
9
10 import com.inversoft.util.BaseException;
11
12
13 /**
14  * <p>
15  * This class is an exception that can be used in the throws
16  * clause of ActionHandler methods. This is not required to
17  * be in the throws clause so that applications can define
18  * their own exceptions and use the Verge framework to handle
19  * them accordingly, however, this exception can provide a
20  * good starting point or can be used if applications do not
21  * wish to create their own exceptions.
22  * </p>
23  *
24  * @author Brian Pontarelli
25  */

26 public class ActionHandlerException extends BaseException {
27
28     /**
29      * Instantiates a new empty <code>ActionHandlerException</code>
30      */

31     public ActionHandlerException() {
32     }
33
34     /**
35      * Instantiates a new <code>ActionHandlerException</code> with the given error message
36      *
37      * @param mesg The error message for the Exception
38      */

39     public ActionHandlerException(String JavaDoc mesg) {
40         super(mesg);
41     }
42
43     /**
44      * Instantiates a new <code>ActionHandlerException</code> with the given error message
45      * and root cause
46      *
47      * @param mesg The error message for the Exception
48      * @param cause A Throwable that is the root cause
49      */

50     public ActionHandlerException(String JavaDoc mesg, Throwable JavaDoc cause) {
51         super(mesg, cause);
52     }
53
54     /**
55      * Instantiates a new <code>ActionHandlerException</code> with the given root cause and
56      * an error message that follows this rule (cause == null) ? null :
57      * cause.toString();
58      *
59      * @param cause A Throwable that is the root cause
60      */

61     public ActionHandlerException(Throwable JavaDoc cause) {
62         super(cause);
63     }
64 }
Popular Tags