KickJava   Java API By Example, From Geeks To Geeks.

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


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>EISSystemException</code> is used to indicate any EIS
28  * specific system-level
29  * error conditions. The common error conditions are: failure or inactivity of
30  * an EIS instance, communication failure and EIS specific error in the
31  * creation of a new physical connection.
32  *
33  * @version 1.0
34  * @author Rahul Sharma
35  * @author Ram Jeyaraman
36  */

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

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

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

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

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

81     public EISSystemException(String JavaDoc message, String JavaDoc errorCode) {
82     super(message, errorCode);
83     }
84 }
85
Popular Tags