diff options
| author | Gordon Sim <gsim@apache.org> | 2013-11-04 17:06:54 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-11-04 17:06:54 +0000 |
| commit | 7202b1ac00cbf4e0f4912dc1c204f761ea575256 (patch) | |
| tree | a87f51a7f2d55e74fb5e3e639aebd8077f07aff9 /qpid/cpp | |
| parent | d0dc0761c8e2fb1a44f1c6c149fa800b5a2fe2c6 (diff) | |
| download | qpid-python-7202b1ac00cbf4e0f4912dc1c204f761ea575256.tar.gz | |
QPID-5290: fix exception thrown in PagedQueue
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/PagedQueue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/PagedQueue.cpp b/qpid/cpp/src/qpid/broker/PagedQueue.cpp index 862e9c0d48..a0fbf530a1 100644 --- a/qpid/cpp/src/qpid/broker/PagedQueue.cpp +++ b/qpid/cpp/src/qpid/broker/PagedQueue.cpp @@ -23,6 +23,7 @@ #include "qpid/broker/QueueCursor.h" #include "qpid/broker/Message.h" #include "qpid/log/Statement.h" +#include "qpid/framing/reply_exceptions.h" #include <string.h> namespace qpid { @@ -103,7 +104,7 @@ bool PagedQueue::deleted(const QueueCursor& cursor) void PagedQueue::publish(const Message& added) { if (encodedSize(added) > pageSize) { - throw qpid::Exception(QPID_MSG("Message is larger than page size for queue backed by " << path)); + throw qpid::framing::PreconditionFailedException(QPID_MSG("Message is larger than page size for queue backed by " << path)); } Used::reverse_iterator i = used.rbegin(); if (i != used.rend()) { |
