diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2014-03-19 19:40:40 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2014-03-19 19:40:40 +0000 |
| commit | c6e0ff9682d253b95e553c4e7d9038c014c84368 (patch) | |
| tree | 762057084227d470addba9b1ebaf623066f5ba9d /qpid/cpp/include | |
| parent | 36c8fa3761a7866c30d2bbd443d39f8d96095322 (diff) | |
| download | qpid-python-c6e0ff9682d253b95e553c4e7d9038c014c84368.tar.gz | |
QPID-5586: Introduce SessionClosed exception
- use it for qpid::messaging::Session::nextReceiver to ensure that
closing a connection/session can be distinguished.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1579367 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/messaging/exceptions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/messaging/exceptions.h b/qpid/cpp/include/qpid/messaging/exceptions.h index a9fa8e2506..6c65f4a889 100644 --- a/qpid/cpp/include/qpid/messaging/exceptions.h +++ b/qpid/cpp/include/qpid/messaging/exceptions.h @@ -151,6 +151,16 @@ struct QPID_MESSAGING_CLASS_EXTERN SessionError : public MessagingException QPID_MESSAGING_EXTERN SessionError(const std::string&); }; +/** + * Thrown to indicate that the sesion was closed by this client (probably in + * a different thread) whilst we were waiting on it. This is not really an + * error condition but there is no other way to return this. + */ +struct QPID_MESSAGING_CLASS_EXTERN SessionClosed : public SessionError +{ + QPID_MESSAGING_EXTERN SessionClosed(); +}; + struct QPID_MESSAGING_CLASS_EXTERN TransactionError : public SessionError { QPID_MESSAGING_EXTERN TransactionError(const std::string&); |
