18#ifndef _CMS_XAEXCEPTION_H_
19#define _CMS_XAEXCEPTION_H_
185 XAException(
const std::string& message,
const std::exception* cause);
187 XAException(
const std::string& message,
const std::exception* cause,
188 const std::vector<std::pair<std::string, int> >& stackTrace);
203 this->errorCode = errorCode;
212 return this->errorCode;
static const int XAER_OUTSIDE
Work is being done by the Resource Manager outside the boundaries of a global transaction.
Definition XAException.h:173
static const int XAER_RMERR
Code which means that a Resource Manager error has occurred for the transaction branch.
Definition XAException.h:142
static const int XA_RBBASE
Code which contains the inclusive lower bound of the rollback error codes.
Definition XAException.h:42
int getErrorCode() const
Gets the error code that was assigned to this XAException.
Definition XAException.h:211
static const int XAER_RMFAIL
Code which means that the Resource Manager is unavailable.
Definition XAException.h:162
XAException(int errorCode)
static const int XAER_DUPID
Code which means that the XID already exists.
Definition XAException.h:167
virtual XAException * clone()
Creates a cloned version of this CMSException instance.
void setErrorCode(int errorCode)
Sets the error code for this XAException.
Definition XAException.h:202
static const int XAER_ASYNC
Code which means that there is already an asynchronous operation outstanding.
Definition XAException.h:136
static const int XA_RBPROTO
Code which means that a protocol error occurred in the Resource Manager.
Definition XAException.h:74
static const int XA_HEURCOM
Code which means that the transaction branch has been heuristically committed.
Definition XAException.h:106
static const int XA_HEURHAZ
Code which means that the transaction branch may have been heuristically completed.
Definition XAException.h:100
static const int XA_RBTIMEOUT
Code which means that a transaction branch took too long.
Definition XAException.h:79
static const int XA_NOMIGRATE
Code which means that resumption must occur where the suspension occurred.
Definition XAException.h:94
static const int XA_RBROLLBACK
Code which means that the rollback occurred for an unspecified reason.
Definition XAException.h:47
static const int XA_HEURRB
Code which means that the transaction branch has been heuristically rolled back.
Definition XAException.h:112
static const int XA_RBTRANSIENT
Code which means that the caller may retry the transaction branch.
Definition XAException.h:84
static const int XA_RBOTHER
Code which means that the Resource Manager rolled back the transaction branch for a reason not separa...
Definition XAException.h:69
static const int XA_HEURMIX
Code which means that the transaction branch has been heuristically committed and rolled back.
Definition XAException.h:118
XAException(const XAException &ex)
XAException(const std::string &message)
XAException(const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace)
static const int XAER_PROTO
Code which means that the method was invoked in an improper context.
Definition XAException.h:157
static const int XA_RBINTEGRITY
Code which means that a condition was detected than implies a violation of the integrity of the resou...
Definition XAException.h:63
static const int XA_RBEND
Code which contains the inclusive upper bound of the rollback error codes.
Definition XAException.h:89
static const int XAER_INVAL
Code which means that invalid arguments were supplied.
Definition XAException.h:152
static const int XAER_NOTA
Code which means that the XID is not valid.
Definition XAException.h:147
XAException(const std::string &message, const std::exception *cause)
static const int XA_RBCOMMFAIL
Code which means that rollback was caused by a communication failure.
Definition XAException.h:52
static const int XA_RBDEADLOCK
Code which means that a failure occurred because a deadlock was detected.
Definition XAException.h:57
static const int XA_RETRY
Code which means that the method returned with no effect and can be reissued.
Definition XAException.h:124
static const int XA_RDONLY
Code which means that the transaction branch was read only and has been committed.
Definition XAException.h:130
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23