001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 // 021 // This source code implements specifications defined by the Java 022 // Community Process. In order to remain compliant with the specification 023 // DO NOT add / change / or delete method signatures! 024 // 025 026 package javax.transaction.xa; 027 028 /** 029 * @version $Rev: 467742 $ $Date: 2006-10-25 21:30:38 +0200 (Mi, 25. Okt 2006) $ 030 */ 031 public class XAException extends Exception { 032 public static final int XA_RBBASE = 100; 033 public static final int XA_RBROLLBACK = 100; 034 public static final int XA_RBCOMMFAIL = 101; 035 public static final int XA_RBDEADLOCK = 102; 036 public static final int XA_RBINTEGRITY = 103; 037 public static final int XA_RBOTHER = 104; 038 public static final int XA_RBPROTO = 105; 039 public static final int XA_RBTIMEOUT = 106; 040 public static final int XA_RBTRANSIENT = 107; 041 public static final int XA_RBEND = 107; 042 public static final int XA_NOMIGRATE = 9; 043 public static final int XA_HEURHAZ = 8; 044 public static final int XA_HEURCOM = 7; 045 public static final int XA_HEURRB = 6; 046 public static final int XA_HEURMIX = 5; 047 public static final int XA_RETRY = 4; 048 public static final int XA_RDONLY = 3; 049 public static final int XAER_ASYNC = -2; 050 public static final int XAER_RMERR = -3; 051 public static final int XAER_NOTA = -4; 052 public static final int XAER_INVAL = -5; 053 public static final int XAER_PROTO = -6; 054 public static final int XAER_RMFAIL = -7; 055 public static final int XAER_DUPID = -8; 056 public static final int XAER_OUTSIDE = -9; 057 058 public int errorCode; 059 060 public XAException() { 061 super(); 062 } 063 064 public XAException(String message) { 065 super(message); 066 } 067 068 public XAException(int errorCode) { 069 super(); 070 this.errorCode = errorCode; 071 } 072 }