From f27ee6dbd1b52faa40c7c6c544b60cbd30ef4da2 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 30 Apr 2014 14:10:00 +0000 Subject: QPID-5736: only block until sent message is settled; signal rejection by throwing exception git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591300 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/include/qpid/messaging/exceptions.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qpid/cpp/include') diff --git a/qpid/cpp/include/qpid/messaging/exceptions.h b/qpid/cpp/include/qpid/messaging/exceptions.h index 6c65f4a889..1ad8014940 100644 --- a/qpid/cpp/include/qpid/messaging/exceptions.h +++ b/qpid/cpp/include/qpid/messaging/exceptions.h @@ -136,6 +136,15 @@ struct QPID_MESSAGING_CLASS_EXTERN SendError : public SenderError QPID_MESSAGING_EXTERN SendError(const std::string&); }; +/** + * Thrown on a synchronous send to indicate that the message being + * sent was rejected. + */ +struct QPID_MESSAGING_CLASS_EXTERN MessageRejected : public SendError +{ + QPID_MESSAGING_EXTERN MessageRejected(const std::string&); +}; + /** * Thrown to indicate that the sender attempted to send a message that * would result in the target node on the peer exceeding a -- cgit v1.2.1