Qpid C++ Messaging API  1.39.0
exceptions.h
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 
25 #include "qpid/messaging/ImportExport.h"
26 #include "qpid/types/Exception.h"
27 #include "qpid/types/Variant.h"
28 
29 namespace qpid {
30 namespace messaging {
31 
39 struct QPID_MESSAGING_CLASS_EXTERN MessagingException : public qpid::types::Exception
40 {
41  QPID_MESSAGING_EXTERN MessagingException(const std::string& msg);
42  QPID_MESSAGING_EXTERN virtual ~MessagingException() throw();
43 };
44 
49 struct QPID_MESSAGING_CLASS_EXTERN InvalidOptionString : public MessagingException
50 {
51  QPID_MESSAGING_EXTERN InvalidOptionString(const std::string& msg);
52 };
53 
59 struct QPID_MESSAGING_CLASS_EXTERN KeyError : public MessagingException
60 {
61  QPID_MESSAGING_EXTERN KeyError(const std::string&);
62 };
63 
64 struct QPID_MESSAGING_CLASS_EXTERN LinkError : public MessagingException
65 {
66  QPID_MESSAGING_EXTERN LinkError(const std::string&);
67 };
68 
69 struct QPID_MESSAGING_CLASS_EXTERN AddressError : public LinkError
70 {
71  QPID_MESSAGING_EXTERN AddressError(const std::string&);
72 };
73 
78 struct QPID_MESSAGING_CLASS_EXTERN ResolutionError : public AddressError
79 {
80  QPID_MESSAGING_EXTERN ResolutionError(const std::string& msg);
81 };
82 
87 struct QPID_MESSAGING_CLASS_EXTERN AssertionFailed : public ResolutionError
88 {
89  QPID_MESSAGING_EXTERN AssertionFailed(const std::string& msg);
90 };
91 
96 struct QPID_MESSAGING_CLASS_EXTERN NotFound : public ResolutionError
97 {
98  QPID_MESSAGING_EXTERN NotFound(const std::string& msg);
99 };
100 
104 struct QPID_MESSAGING_CLASS_EXTERN MalformedAddress : public AddressError
105 {
106  QPID_MESSAGING_EXTERN MalformedAddress(const std::string& msg);
107 };
108 
109 struct QPID_MESSAGING_CLASS_EXTERN ReceiverError : public LinkError
110 {
111  QPID_MESSAGING_EXTERN ReceiverError(const std::string&);
112 };
113 
114 struct QPID_MESSAGING_CLASS_EXTERN FetchError : public ReceiverError
115 {
116  QPID_MESSAGING_EXTERN FetchError(const std::string&);
117 };
118 
124 struct QPID_MESSAGING_CLASS_EXTERN NoMessageAvailable : public FetchError
125 {
126  QPID_MESSAGING_EXTERN NoMessageAvailable();
127 };
128 
129 struct QPID_MESSAGING_CLASS_EXTERN SenderError : public LinkError
130 {
131  QPID_MESSAGING_EXTERN SenderError(const std::string&);
132 };
133 
134 struct QPID_MESSAGING_CLASS_EXTERN SendError : public SenderError
135 {
136  QPID_MESSAGING_EXTERN SendError(const std::string&);
137 };
138 
143 struct QPID_MESSAGING_CLASS_EXTERN MessageRejected : public SendError
144 {
145  QPID_MESSAGING_EXTERN MessageRejected(const std::string&);
146 };
147 
153 struct QPID_MESSAGING_CLASS_EXTERN TargetCapacityExceeded : public SendError
154 {
155  QPID_MESSAGING_EXTERN TargetCapacityExceeded(const std::string&);
156 };
157 
163 struct QPID_MESSAGING_CLASS_EXTERN OutOfCapacity : public SendError
164 {
165  QPID_MESSAGING_EXTERN OutOfCapacity(const std::string&);
166 };
167 
168 struct QPID_MESSAGING_CLASS_EXTERN SessionError : public MessagingException
169 {
170  QPID_MESSAGING_EXTERN SessionError(const std::string&);
171 };
172 
178 struct QPID_MESSAGING_CLASS_EXTERN SessionClosed : public SessionError
179 {
180  QPID_MESSAGING_EXTERN SessionClosed();
181 };
182 
184 struct QPID_MESSAGING_CLASS_EXTERN TransactionError : public SessionError
185 {
186  QPID_MESSAGING_EXTERN TransactionError(const std::string&);
187 };
188 
194 struct QPID_MESSAGING_CLASS_EXTERN TransactionAborted : public TransactionError
195 {
196  QPID_MESSAGING_EXTERN TransactionAborted(const std::string&);
197 };
198 
204 struct QPID_MESSAGING_CLASS_EXTERN TransactionUnknown : public TransactionError
205 {
206  QPID_MESSAGING_EXTERN TransactionUnknown(const std::string&);
207 };
208 
213 struct QPID_MESSAGING_CLASS_EXTERN UnauthorizedAccess : public SessionError
214 {
215  QPID_MESSAGING_EXTERN UnauthorizedAccess(const std::string&);
216 };
217 
218 struct QPID_MESSAGING_CLASS_EXTERN ConnectionError : public MessagingException
219 {
220  QPID_MESSAGING_EXTERN ConnectionError(const std::string&);
221 };
222 
223 struct QPID_MESSAGING_CLASS_EXTERN ProtocolVersionError : public ConnectionError
224 {
225  QPID_MESSAGING_EXTERN ProtocolVersionError(const std::string&);
226 };
227 
228 struct QPID_MESSAGING_CLASS_EXTERN AuthenticationFailure : public ConnectionError
229 {
230  QPID_MESSAGING_EXTERN AuthenticationFailure(const std::string&);
231 };
232 
240 struct QPID_MESSAGING_CLASS_EXTERN TransportFailure : public MessagingException
241 {
242  QPID_MESSAGING_EXTERN TransportFailure(const std::string&);
243 };
244 
245 }} // namespace qpid::messaging
246 
247 #endif
Definition: exceptions.h:184
Definition: Exception.h:31
Definition: exceptions.h:143
Definition: exceptions.h:109
Definition: exceptions.h:104
Definition: exceptions.h:163
Definition: exceptions.h:69
Definition: exceptions.h:168
Definition: exceptions.h:134
Definition: exceptions.h:204
Definition: exceptions.h:178
Definition: exceptions.h:49
Definition: exceptions.h:194
Definition: exceptions.h:114
Definition: exceptions.h:96
Definition: exceptions.h:240
Definition: exceptions.h:129
Definition: exceptions.h:59
Definition: exceptions.h:223
Definition: exceptions.h:64
Definition: exceptions.h:124
Definition: exceptions.h:78
Definition: exceptions.h:153
Definition: exceptions.h:39
Definition: exceptions.h:218
Definition: exceptions.h:228
Definition: Address.h:32
Definition: exceptions.h:87
Definition: exceptions.h:213