KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > event > AdminEventListenerException


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /**
25  * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
26  *
27  * Copyright 2001-2002 by iPlanet/Sun Microsystems, Inc.,
28  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
29  * All rights reserved.
30  */

31 package com.sun.enterprise.admin.event;
32
33 /**
34  * Admin event listener exception. This exception can be thrown by event
35  * listeners to indicate failure while processing the event.
36  */

37 public class AdminEventListenerException extends java.lang.Exception JavaDoc {
38
39     /**
40      * Creates a new instance of <code>AdminEventListenerException</code>
41      * without detail message.
42      */

43     public AdminEventListenerException() {
44     }
45
46     /**
47      * Constructs an instance of <code>AdminEventListenerException</code> with
48      * the specified detail message.
49      * @param msg the detail message.
50      */

51     public AdminEventListenerException(String JavaDoc msg) {
52         super(msg);
53     }
54
55     /**
56      * Constructs an instance of <code>AdminEventListenerException</code> with
57      * the specified detail message and root cause.
58      * @param msg the detail message.
59      * @param cause root cause of the exception
60      */

61     public AdminEventListenerException(String JavaDoc msg, Throwable JavaDoc cause) {
62         super(msg, cause);
63     }
64
65     /**
66      * Constructs an instance of <code>AdminEventListenerException</code> with
67      * the specified root cause. The message for the exception is derived from
68      * cause.getMessage() if cause is not null, otherwise the message is null.
69      * @param cause root cause of the exception
70      */

71     public AdminEventListenerException(Throwable JavaDoc cause) {
72         super(cause);
73     }
74 }
75
Popular Tags