KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > WarningException


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  * $Id: WarningException.java,v 1.3 2005/12/25 03:47:29 tcfujii Exp $
26  * @author: alexkrav
27  *
28  * $Log: WarningException.java,v $
29  * Revision 1.3 2005/12/25 03:47:29 tcfujii
30  * Updated copyright text and year.
31  *
32  * Revision 1.2 2005/06/27 21:19:40 tcfujii
33  * Issue number: CDDL header updates.
34  *
35  * Revision 1.1.1.1 2005/05/27 22:52:02 dpatil
36  * GlassFish first drop
37  *
38  * Revision 1.2 2004/11/14 07:04:16 tcfujii
39  * Updated copyright text and/or year.
40  *
41  * Revision 1.1 2004/10/14 01:16:03 kravtch
42  * New com.sun.enterprise.admin.WarningException.java is created for delivering messages without changing CLI command state to "command failed".
43  * CLI should add code to print its message and ignore Exception.
44  * ClustersConfigBean an admin-ee and localStrings are modified to support "not all servers started" case with throwing WarniungException.
45  * Reviewer: Sreeni
46  * Tests: QLT-EE
47  * Bug #6175992
48  *
49  *
50  * WarningException - is runtime exception for providing warning messages for successfully executed commands
51  * (CLI/GUI framework should treat such exception as normal command execution)
52  *
53 */

54
55 package com.sun.enterprise.admin;
56
57 public class WarningException extends RuntimeException JavaDoc
58 {
59     /**
60         Creates new <code>WarningException</code> without detail message.
61     */

62     
63     public WarningException()
64     {
65         super();
66     }
67
68
69     /**
70         Constructs an <code>WarningException</code> with the specified detail message.
71         @param msg the detail message.
72     */

73     public WarningException(String JavaDoc msg)
74     {
75         super(msg);
76     }
77 }
78
Popular Tags