1 23 24 package javax.transaction.xa; 25 26 31 public class XAException extends java.lang.Exception { 32 33 38 39 public int errorCode; 40 41 44 public XAException() 45 { 46 super(); 47 } 48 49 55 public XAException(String s) 56 { 57 super(s); 58 } 59 60 65 public XAException(int errcode) 66 { 67 super(); 68 errorCode = errcode; 69 } 70 71 74 public final static int XA_RBBASE = 100; 75 76 79 public final static int XA_RBROLLBACK = XA_RBBASE; 80 81 84 public final static int XA_RBCOMMFAIL = XA_RBBASE + 1; 85 86 89 public final static int XA_RBDEADLOCK = XA_RBBASE + 2; 90 91 94 public final static int XA_RBINTEGRITY = XA_RBBASE + 3; 95 96 100 public final static int XA_RBOTHER = XA_RBBASE + 4; 101 102 105 public final static int XA_RBPROTO = XA_RBBASE + 5; 106 107 110 public final static int XA_RBTIMEOUT = XA_RBBASE + 6; 111 112 115 public final static int XA_RBTRANSIENT = XA_RBBASE + 7; 116 117 120 public final static int XA_RBEND = XA_RBTRANSIENT; 121 122 125 public final static int XA_NOMIGRATE = 9; 126 127 130 public final static int XA_HEURHAZ = 8; 131 132 135 public final static int XA_HEURCOM = 7; 136 137 140 public final static int XA_HEURRB = 6; 141 142 146 public final static int XA_HEURMIX = 5; 147 148 151 public final static int XA_RETRY = 4; 152 153 156 public final static int XA_RDONLY = 3; 157 158 161 public final static int XAER_ASYNC = -2; 162 163 166 public final static int XAER_RMERR = -3; 167 168 171 public final static int XAER_NOTA = -4; 172 173 176 public final static int XAER_INVAL = -5; 177 178 181 public final static int XAER_PROTO = -6; 182 183 186 public final static int XAER_RMFAIL = -7; 187 188 191 public final static int XAER_DUPID = -8; 192 193 196 public final static int XAER_OUTSIDE = -9; 197 198 199 } 200 | Popular Tags |