KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > ApplicationException


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  * $Id: ApplicationException.java,v 1.1 2005/07/13 11:09:06 slobodan Exp $
23  */

24
25
26
27
28 package com.lutris.appserver.server;
29
30 import com.lutris.util.ChainedException;
31
32 /**
33  * Exception for failure in and Application object. Normally
34  * used for application initialization errors. May chain any other
35  * exception.
36  *
37  * @version $Revision: 1.1 $
38  * @author Mark Diekhans
39  */

40 public class ApplicationException extends ChainedException {
41     /**
42      * Construct a exception without a specified cause.
43      *
44      * @param msg The message associated with the exception.
45      */

46     public ApplicationException(String JavaDoc msg) {
47         super(msg);
48     }
49
50     /**
51      * Construct a exception with an associated causing exception.
52      *
53      * @param msg The message associated with the exception.
54      * @param cause The error or exception that cause this
55      * exception.
56      */

57     public ApplicationException(String JavaDoc msg,
58                                 Throwable JavaDoc cause) {
59         super(msg, cause);
60     }
61
62     /**
63      * Construct a exception with an associated causing exception.
64      *
65      * @param cause The error or exception that cause this
66      * exception.
67      */

68     public ApplicationException(Throwable JavaDoc cause) {
69         super(cause);
70     }
71 }
72
Popular Tags