From e37e75591dd1416888301294e4ca83cd940e42c0 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 25 Jun 2014 14:47:51 +0000 Subject: QPID-5828: more consistent behaviour os send() when disconnected git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1605429 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/messaging/exceptions.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/include/qpid') diff --git a/cpp/include/qpid/messaging/exceptions.h b/cpp/include/qpid/messaging/exceptions.h index 1ad8014940..f1d79b2535 100644 --- a/cpp/include/qpid/messaging/exceptions.h +++ b/cpp/include/qpid/messaging/exceptions.h @@ -155,6 +155,16 @@ struct QPID_MESSAGING_CLASS_EXTERN TargetCapacityExceeded : public SendError QPID_MESSAGING_EXTERN TargetCapacityExceeded(const std::string&); }; +/** + * Thrown to indicate that the locally configured sender capacity has + * been reached, and thus no further messages can be put on the replay + * buffer. + */ +struct QPID_MESSAGING_CLASS_EXTERN OutOfCapacity : public SendError +{ + QPID_MESSAGING_EXTERN OutOfCapacity(const std::string&); +}; + struct QPID_MESSAGING_CLASS_EXTERN SessionError : public MessagingException { QPID_MESSAGING_EXTERN SessionError(const std::string&); -- cgit v1.2.1