View Javadoc

1   /**
2    *
3    * Copyright 2003-2004 The Apache Software Foundation
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17  
18  //
19  // This source code implements specifications defined by the Java
20  // Community Process. In order to remain compliant with the specification
21  // DO NOT add / change / or delete method signatures!
22  //
23  
24  package javax.transaction.xa;
25  
26  /**
27   *
28   *
29   *
30   * @version $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
31   */
32  public class XAException extends Exception {
33      public static final int XA_RBBASE = 100;
34      public static final int XA_RBROLLBACK = 100;
35      public static final int XA_RBCOMMFAIL = 101;
36      public static final int XA_RBDEADLOCK = 102;
37      public static final int XA_RBINTEGRITY = 103;
38      public static final int XA_RBOTHER = 104;
39      public static final int XA_RBPROTO = 105;
40      public static final int XA_RBTIMEOUT = 106;
41      public static final int XA_RBTRANSIENT = 107;
42      public static final int XA_RBEND = 107;
43      public static final int XA_NOMIGRATE = 9;
44      public static final int XA_HEURHAZ = 8;
45      public static final int XA_HEURCOM = 7;
46      public static final int XA_HEURRB = 6;
47      public static final int XA_HEURMIX = 5;
48      public static final int XA_RETRY = 4;
49      public static final int XA_RDONLY = 3;
50      public static final int XAER_ASYNC = -2;
51      public static final int XAER_RMERR = -3;
52      public static final int XAER_NOTA = -4;
53      public static final int XAER_INVAL = -5;
54      public static final int XAER_PROTO = -6;
55      public static final int XAER_RMFAIL = -7;
56      public static final int XAER_DUPID = -8;
57      public static final int XAER_OUTSIDE = -9;
58  
59      public int errorCode;
60  
61      public XAException() {
62          super();
63      }
64  
65      public XAException(String message) {
66          super(message);
67      }
68  
69      public XAException(int errorCode) {
70          super();
71          this.errorCode = errorCode;
72      }
73  }