KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > resource > spi > ApplicationServerInternalException


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 package javax.resource.spi;
25
26 /**
27  * An <code>ApplicationServerInternalException</code> is thrown
28  * by an application
29  * server to indicate error conditions specific to an application server.
30  * These error conditions can be related to either configuration related
31  * errors or implementation of mechanisms internal to an application server
32  * (example: connection pooling, thread management).
33  *
34  * @version 1.0
35  * @author Rahul Sharma
36  * @author Ram Jeyaraman
37  */

38
39 public class ApplicationServerInternalException
40         extends javax.resource.ResourceException JavaDoc {
41
42     /**
43      * Constructs a new instance with null as its detail message.
44      */

45     public ApplicationServerInternalException() { super(); }
46
47     /**
48      * Constructs a new instance with the specified detail message.
49      *
50      * @param message the detail message.
51      */

52     public ApplicationServerInternalException(String JavaDoc message) {
53     super(message);
54     }
55
56     /**
57      * Constructs a new throwable with the specified cause.
58      *
59      * @param cause a chained exception of type
60      * <code>Throwable</code>.
61      */

62     public ApplicationServerInternalException(Throwable JavaDoc cause) {
63     super(cause);
64     }
65
66     /**
67      * Constructs a new throwable with the specified detail message and cause.
68      *
69      * @param message the detail message.
70      *
71      * @param cause a chained exception of type
72      * <code>Throwable</code>.
73      */

74     public ApplicationServerInternalException(
75             String JavaDoc message, Throwable JavaDoc cause) {
76     super(message, cause);
77     }
78
79     /**
80      * Constructs a new throwable with the specified detail message and
81      * an error code.
82      *
83      * @param message a description of the exception.
84      * @param errorCode a string specifying the vendor specific error code.
85      */

86     public ApplicationServerInternalException(
87             String JavaDoc message, String JavaDoc errorCode) {
88     super(message, errorCode);
89     }
90 }
91
Popular Tags