src/java.sql/share/classes/javax/transaction/xa/XAException.java

Print this page




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.transaction.xa;
  27 
  28 /**
  29  * The XAException is thrown by the Resource Manager (RM) to inform the
  30  * Transaction Manager of an error encountered by the involved transaction.
  31  *
  32  */
  33 public class XAException extends Exception {
  34     //private static final long serialVersionUID = -8249683284832867751L;




  35 
  36     /**
  37      * The error code with which to create the SystemException.
  38      *
  39      * @serial The error code for the exception
  40      */
  41     public int errorCode;
  42 
  43     /**
  44      * Create an XAException.
  45      */
  46     public XAException() {
  47         super();
  48     }
  49 
  50     /**
  51      * Create an XAException with a given string.
  52      *
  53      * @param s The <code>String</code> object containing the exception
  54      *          message.




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.transaction.xa;
  27 
  28 /**
  29  * The XAException is thrown by the Resource Manager (RM) to inform the
  30  * Transaction Manager of an error encountered by the involved transaction.
  31  *
  32  */
  33 public class XAException extends Exception {
  34 
  35     /**
  36      * Specify serialVersionUID for backward compatibility
  37      */
  38     private static final long serialVersionUID = -8249683284832867751L;
  39 
  40     /**
  41      * The error code with which to create the SystemException.
  42      *
  43      * @serial The error code for the exception
  44      */
  45     public int errorCode;
  46 
  47     /**
  48      * Create an XAException.
  49      */
  50     public XAException() {
  51         super();
  52     }
  53 
  54     /**
  55      * Create an XAException with a given string.
  56      *
  57      * @param s The <code>String</code> object containing the exception
  58      *          message.