javax.transaction.xa

Class XAException

  • All Implemented Interfaces:
    Serializable

    public class XAException
    extends Exception
    The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction.
    See Also:
    Serialized Form
    • Field Detail

      • errorCode

        public int errorCode
        The error code with which to create the SystemException.
      • XA_RBBASE

        public static final int XA_RBBASE
        The inclusive lower bound of the rollback codes.
        See Also:
        Constant Field Values
      • XA_RBROLLBACK

        public static final int XA_RBROLLBACK
        Indicates that the rollback was caused by an unspecified reason.
        See Also:
        Constant Field Values
      • XA_RBCOMMFAIL

        public static final int XA_RBCOMMFAIL
        Indicates that the rollback was caused by a communication failure.
        See Also:
        Constant Field Values
      • XA_RBDEADLOCK

        public static final int XA_RBDEADLOCK
        A deadlock was detected.
        See Also:
        Constant Field Values
      • XA_RBINTEGRITY

        public static final int XA_RBINTEGRITY
        A condition that violates the integrity of the resource was detected.
        See Also:
        Constant Field Values
      • XA_RBOTHER

        public static final int XA_RBOTHER
        The resource manager rolled back the transaction branch for a reason not on this list.
        See Also:
        Constant Field Values
      • XA_RBPROTO

        public static final int XA_RBPROTO
        A protocol error occurred in the resource manager.
        See Also:
        Constant Field Values
      • XA_RBTIMEOUT

        public static final int XA_RBTIMEOUT
        A transaction branch took too long.
        See Also:
        Constant Field Values
      • XA_RBTRANSIENT

        public static final int XA_RBTRANSIENT
        May retry the transaction branch.
        See Also:
        Constant Field Values
      • XA_RBEND

        public static final int XA_RBEND
        The inclusive upper bound of the rollback error code.
        See Also:
        Constant Field Values
      • XA_NOMIGRATE

        public static final int XA_NOMIGRATE
        Resumption must occur where the suspension occurred.
        See Also:
        Constant Field Values
      • XA_HEURHAZ

        public static final int XA_HEURHAZ
        The transaction branch may have been heuristically completed.
        See Also:
        Constant Field Values
      • XA_HEURCOM

        public static final int XA_HEURCOM
        The transaction branch has been heuristically committed.
        See Also:
        Constant Field Values
      • XA_HEURRB

        public static final int XA_HEURRB
        The transaction branch has been heuristically rolled back.
        See Also:
        Constant Field Values
      • XA_HEURMIX

        public static final int XA_HEURMIX
        The transaction branch has been heuristically committed and rolled back.
        See Also:
        Constant Field Values
      • XA_RETRY

        public static final int XA_RETRY
        Routine returned with no effect and may be reissued.
        See Also:
        Constant Field Values
      • XA_RDONLY

        public static final int XA_RDONLY
        The transaction branch was read-only and has been committed.
        See Also:
        Constant Field Values
      • XAER_ASYNC

        public static final int XAER_ASYNC
        There is an asynchronous operation already outstanding.
        See Also:
        Constant Field Values
      • XAER_RMERR

        public static final int XAER_RMERR
        A resource manager error has occurred in the transaction branch.
        See Also:
        Constant Field Values
      • XAER_INVAL

        public static final int XAER_INVAL
        Invalid arguments were given.
        See Also:
        Constant Field Values
      • XAER_PROTO

        public static final int XAER_PROTO
        Routine was invoked in an inproper context.
        See Also:
        Constant Field Values
      • XAER_RMFAIL

        public static final int XAER_RMFAIL
        Resource manager is unavailable.
        See Also:
        Constant Field Values
      • XAER_OUTSIDE

        public static final int XAER_OUTSIDE
        The resource manager is doing work outside a global transaction.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XAException

        public XAException()
        Create an XAException.
      • XAException

        public XAException(String s)
        Create an XAException with a given string.
        Parameters:
        s - The String object containing the exception message.
      • XAException

        public XAException(int errcode)
        Create an XAException with a given error code.
        Parameters:
        errcode - The error code identifying the exception.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/transaction/xa/XAException.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, XAException

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut