diff options
Diffstat (limited to 'cpp/src/qpid/Exception.h')
| -rw-r--r-- | cpp/src/qpid/Exception.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/Exception.h b/cpp/src/qpid/Exception.h index 4ca15b37fc..57c7a21234 100644 --- a/cpp/src/qpid/Exception.h +++ b/cpp/src/qpid/Exception.h @@ -61,6 +61,11 @@ struct ConnectionException : public Exception { : Exception(message), code(code_) {} }; -} // namespace qpid +struct ClosedException : public Exception { + static const std::string CLOSED_MESSAGE; + ClosedException(const std::string& msg=CLOSED_MESSAGE) : Exception(msg) {} +}; +} // namespace qpid + #endif /*!_Exception_*/ |
