summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/messaging/Session.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-04-09 15:08:47 +0000
committerGordon Sim <gsim@apache.org>2010-04-09 15:08:47 +0000
commitef958e7b221d38ec76c392f76a66978211d6d1f9 (patch)
tree111ba60857b7613f18e64f5c817d6e271428013e /cpp/include/qpid/messaging/Session.h
parent2daf8e11866364ff4955ee69625bf401e9baa93c (diff)
downloadqpid-python-ef958e7b221d38ec76c392f76a66978211d6d1f9.tar.gz
QPID-664: changed connect() back to open(),removed detach(),defined new exception hierarchy, added ability to re-use reconnect/replay logic for resource-limit-exceeded errors
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/messaging/Session.h')
-rw-r--r--cpp/include/qpid/messaging/Session.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/include/qpid/messaging/Session.h b/cpp/include/qpid/messaging/Session.h
index 95f9832576..b3bc527329 100644
--- a/cpp/include/qpid/messaging/Session.h
+++ b/cpp/include/qpid/messaging/Session.h
@@ -21,7 +21,7 @@
* under the License.
*
*/
-#include "qpid/Exception.h"
+#include "qpid/messaging/exceptions.h"
#include "qpid/messaging/Duration.h"
#include "qpid/messaging/ImportExport.h"
#include "qpid/messaging/Handle.h"
@@ -40,11 +40,6 @@ class Receiver;
class SessionImpl;
class Subscription;
-struct KeyError : qpid::Exception
-{
- QPID_CLIENT_EXTERN KeyError(const std::string&);
-};
-
/**
* A session represents a distinct 'conversation' which can involve
* sending and receiving messages to and from different addresses.
@@ -159,6 +154,9 @@ class Session : public qpid::messaging::Handle<SessionImpl>
*/
QPID_CLIENT_EXTERN Connection getConnection() const;
+ QPID_CLIENT_EXTERN bool hasError();
+ QPID_CLIENT_EXTERN void checkError();
+
private:
friend class qpid::messaging::PrivateImplRef<Session>;
};