Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
exceptions.h
Go to the documentation of this file.
1 #ifndef QPID_MESSAGING_EXCEPTIONS_H
2 #define QPID_MESSAGING_EXCEPTIONS_H
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
26 #include "qpid/types/Exception.h"
27 #include "qpid/types/Variant.h"
28 
29 namespace qpid {
30 namespace messaging {
31 
40 {
41  QPID_MESSAGING_EXTERN MessagingException(const std::string& msg);
42  QPID_MESSAGING_EXTERN virtual ~MessagingException() throw();
43 };
44 
50 {
51  QPID_MESSAGING_EXTERN InvalidOptionString(const std::string& msg);
52 };
53 
60 {
61  QPID_MESSAGING_EXTERN KeyError(const std::string&);
62 };
63 
65 {
66  QPID_MESSAGING_EXTERN LinkError(const std::string&);
67 };
68 
70 {
71  QPID_MESSAGING_EXTERN AddressError(const std::string&);
72 };
73 
79 {
80  QPID_MESSAGING_EXTERN ResolutionError(const std::string& msg);
81 };
82 
88 {
89  QPID_MESSAGING_EXTERN AssertionFailed(const std::string& msg);
90 };
91 
97 {
98  QPID_MESSAGING_EXTERN NotFound(const std::string& msg);
99 };
100 
105 {
106  QPID_MESSAGING_EXTERN MalformedAddress(const std::string& msg);
107 };
108 
110 {
111  QPID_MESSAGING_EXTERN ReceiverError(const std::string&);
112 };
113 
115 {
116  QPID_MESSAGING_EXTERN FetchError(const std::string&);
117 };
118 
125 {
127 };
128 
130 {
131  QPID_MESSAGING_EXTERN SenderError(const std::string&);
132 };
133 
135 {
136  QPID_MESSAGING_EXTERN SendError(const std::string&);
137 };
138 
144 {
145  QPID_MESSAGING_EXTERN MessageRejected(const std::string&);
146 };
147 
154 {
155  QPID_MESSAGING_EXTERN TargetCapacityExceeded(const std::string&);
156 };
157 
164 {
165  QPID_MESSAGING_EXTERN OutOfCapacity(const std::string&);
166 };
167 
169 {
170  QPID_MESSAGING_EXTERN SessionError(const std::string&);
171 };
172 
179 {
181 };
182 
184 {
185  QPID_MESSAGING_EXTERN TransactionError(const std::string&);
186 };
187 
193 {
194  QPID_MESSAGING_EXTERN TransactionAborted(const std::string&);
195 };
196 
202 {
203  QPID_MESSAGING_EXTERN UnauthorizedAccess(const std::string&);
204 };
205 
207 {
208  QPID_MESSAGING_EXTERN ConnectionError(const std::string&);
209 };
210 
212 {
213  QPID_MESSAGING_EXTERN AuthenticationFailure(const std::string&);
214 };
215 
224 {
225  QPID_MESSAGING_EXTERN TransportFailure(const std::string&);
226 };
227 
228 }} // namespace qpid::messaging
229 
230 #endif
This is the base class for all messaging related exceptions thrown by this API.
Definition: exceptions.h:39
#define QPID_MESSAGING_EXTERN
Definition: ImportExport.h:30
Thrown to indicate that the locally configured sender capacity has been reached, and thus no further ...
Definition: exceptions.h:163
Thrown when an address string with invalid syntax is used.
Definition: exceptions.h:104
Thrown when the syntax of the option string used to configure a connection in not valid...
Definition: exceptions.h:49
Thrown to indicate that the application attempted to do something for which it was not authorised by ...
Definition: exceptions.h:201
Thrown when a syntactically correct address cannot be resolved or used.
Definition: exceptions.h:78
Thrown to indicate that the sesion was closed by this client (probably in a different thread) whilst ...
Definition: exceptions.h:178
Thrown on Session::commit() if reconnection results in the transaction being automatically aborted...
Definition: exceptions.h:192
Thrown on a synchronous send to indicate that the message being sent was rejected.
Definition: exceptions.h:143
#define QPID_MESSAGING_CLASS_EXTERN
Definition: ImportExport.h:31
Thrown to indicate loss of underlying connection.
Definition: exceptions.h:223
Thrown by Receiver::fetch(), Receiver::get() and Session::nextReceiver() to indicate that there no me...
Definition: exceptions.h:124
Thrown to indicate a failed lookup of some local object.
Definition: exceptions.h:59
Thrown on attempts to create a sender or receiver to a non-existent node.
Definition: exceptions.h:96
Thrown to indicate that the sender attempted to send a message that would result in the target node o...
Definition: exceptions.h:153
Thrown when creating a sender or receiver for an address for which some asserted property of the node...
Definition: exceptions.h:87

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5