diff options
| author | Gordon Sim <gsim@apache.org> | 2010-04-09 15:08:47 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-04-09 15:08:47 +0000 |
| commit | ef958e7b221d38ec76c392f76a66978211d6d1f9 (patch) | |
| tree | 111ba60857b7613f18e64f5c817d6e271428013e /cpp/src/qpid/messaging/Session.cpp | |
| parent | 2daf8e11866364ff4955ee69625bf401e9baa93c (diff) | |
| download | qpid-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/src/qpid/messaging/Session.cpp')
| -rw-r--r-- | cpp/src/qpid/messaging/Session.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/qpid/messaging/Session.cpp b/cpp/src/qpid/messaging/Session.cpp index eb5e3766b8..bd9048e893 100644 --- a/cpp/src/qpid/messaging/Session.cpp +++ b/cpp/src/qpid/messaging/Session.cpp @@ -94,6 +94,15 @@ Connection Session::getConnection() const return impl->getConnection(); } -KeyError::KeyError(const std::string& msg) : Exception(msg) {} +void Session::checkError() { impl->checkError(); } +bool Session::hasError() +{ + try { + checkError(); + return false; + } catch (const std::exception&) { + return true; + } +} }} // namespace qpid::messaging |
