KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > MVCException


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;
8
9
10 import com.inversoft.util.BaseException;
11
12
13 /**
14  * <p>
15  * This class is the exception main exception that is thrown
16  * from the MVC System as a whole. Internally, different
17  * exceptions may be thrown. This however, is the only
18  * exception that should be thrown to classes outside the
19  * MVC System.
20  * </p>
21  *
22  * @author Brian Pontarelli
23  * @since 2.0
24  * @version 2.0
25  */

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

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

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

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

62     public MVCException(Throwable JavaDoc cause) {
63         super(cause);
64     }
65 }
66
Popular Tags