diff options
| author | Gordon Sim <gsim@apache.org> | 2014-04-30 14:10:00 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2014-04-30 14:10:00 +0000 |
| commit | f27ee6dbd1b52faa40c7c6c544b60cbd30ef4da2 (patch) | |
| tree | f5bbd1ca5345193f76ef68c903f18a1bef98e6ab /qpid/cpp/include | |
| parent | aeb2793707799a2d459888fc0ed0dd9faf1c7c78 (diff) | |
| download | qpid-python-f27ee6dbd1b52faa40c7c6c544b60cbd30ef4da2.tar.gz | |
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
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/messaging/exceptions.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -137,6 +137,15 @@ struct QPID_MESSAGING_CLASS_EXTERN SendError : public SenderError }; /** + * 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 * preconfigured capacity. |
