mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 19:45:37 +08:00
61 lines
1.7 KiB
Java
61 lines
1.7 KiB
Java
|
/* Copyright (C) 2001 Free Software Foundation
|
||
|
|
||
|
This file is part of libgcj.
|
||
|
|
||
|
This software is copyrighted work licensed under the terms of the
|
||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||
|
details. */
|
||
|
|
||
|
package javax.transaction.xa;
|
||
|
|
||
|
/**
|
||
|
* @author Tom Tromey <tromey@redhat.com>
|
||
|
* @date April 18, 2001
|
||
|
*/
|
||
|
|
||
|
public class XAException extends Exception
|
||
|
{
|
||
|
public int errorCode;
|
||
|
public static final int XA_RBBASE = 100;
|
||
|
public static final int XA_RBROLLBACK = 100;
|
||
|
public static final int XA_RBCOMMFAIL = 101;
|
||
|
public static final int XA_RBDEADLOCK = 102;
|
||
|
public static final int XA_RBINTEGRITY = 103;
|
||
|
public static final int XA_RBOTHER = 104;
|
||
|
public static final int XA_RBPROTO = 105;
|
||
|
public static final int XA_RBTIMEOUT = 106;
|
||
|
public static final int XA_RBTRANSIENT = 107;
|
||
|
public static final int XA_RBEND = 107;
|
||
|
public static final int XA_NOMIGRATE = 9;
|
||
|
public static final int XA_HEURHAZ = 8;
|
||
|
public static final int XA_HEURCOM = 7;
|
||
|
public static final int XA_HEURRB = 6;
|
||
|
public static final int XA_HEURMIX = 5;
|
||
|
public static final int XA_RETRY = 4;
|
||
|
public static final int XA_RDONLY = 3;
|
||
|
public static final int XAER_ASYNC = -2;
|
||
|
public static final int XAER_RMERR = -3;
|
||
|
public static final int XAER_NOTA = -4;
|
||
|
public static final int XAER_INVAL = -5;
|
||
|
public static final int XAER_PROTO = -6;
|
||
|
public static final int XAER_RMFAIL = -7;
|
||
|
public static final int XAER_DUPID = -8;
|
||
|
public static final int XAER_OUTSIDE = -9;
|
||
|
|
||
|
public XAException ()
|
||
|
{
|
||
|
super ();
|
||
|
}
|
||
|
|
||
|
public XAException (String msg)
|
||
|
{
|
||
|
super (msg);
|
||
|
}
|
||
|
|
||
|
public XAException (int errcode)
|
||
|
{
|
||
|
super ();
|
||
|
this.errorCode = errcode;
|
||
|
}
|
||
|
}
|