activemq-cpp-3.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
XAException.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _CMS_XAEXCEPTION_H_
19
#define _CMS_XAEXCEPTION_H_
20
21
#include <
cms/Config.h
>
22
#include <
cms/CMSException.h
>
23
24
namespace
cms {
25
32
class
CMS_API
XAException
:
public
CMSException
{
33
private
:
34
35
int
errorCode;
36
37
public
:
38
42
static
const
int
XA_RBBASE
;
43
47
static
const
int
XA_RBROLLBACK
;
48
52
static
const
int
XA_RBCOMMFAIL
;
53
57
static
const
int
XA_RBDEADLOCK
;
58
63
static
const
int
XA_RBINTEGRITY
;
64
69
static
const
int
XA_RBOTHER
;
70
74
static
const
int
XA_RBPROTO
;
75
79
static
const
int
XA_RBTIMEOUT
;
80
84
static
const
int
XA_RBTRANSIENT
;
85
89
static
const
int
XA_RBEND
;
90
94
static
const
int
XA_NOMIGRATE
;
95
100
static
const
int
XA_HEURHAZ
;
101
106
static
const
int
XA_HEURCOM
;
107
112
static
const
int
XA_HEURRB
;
113
118
static
const
int
XA_HEURMIX
;
119
124
static
const
int
XA_RETRY
;
125
130
static
const
int
XA_RDONLY
;
131
136
static
const
int
XAER_ASYNC
;
137
142
static
const
int
XAER_RMERR
;
143
147
static
const
int
XAER_NOTA
;
148
152
static
const
int
XAER_INVAL
;
153
157
static
const
int
XAER_PROTO
;
158
162
static
const
int
XAER_RMFAIL
;
163
167
static
const
int
XAER_DUPID
;
168
173
static
const
int
XAER_OUTSIDE
;
174
175
public
:
176
177
XAException
();
178
179
XAException
(
int
errorCode);
180
181
XAException
(
const
XAException
& ex);
182
183
XAException
(
const
std::string& message);
184
185
XAException
(
const
std::string& message,
const
std::exception* cause);
186
187
XAException
(
const
std::string& message,
const
std::exception* cause,
188
const
std::vector<std::pair<std::string, int> >& stackTrace);
189
190
virtual
~
XAException
() throw();
191
192
virtual
XAException
* clone();
193
194
public:
195
202
void
setErrorCode(
int
errorCode) {
203
this->errorCode = errorCode;
204
}
205
211
int
getErrorCode
()
const
{
212
return
this->errorCode;
213
}
214
215
};
216
217
}
218
219
#endif
/* _CMS_XAEXCEPTION_H_ */
src
main
cms
XAException.h
Generated on Mon Mar 4 2013 10:25:45 for activemq-cpp-3.6.0 by
1.8.1.2