summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-11-04 17:06:54 +0000
committerGordon Sim <gsim@apache.org>2013-11-04 17:06:54 +0000
commit7bd50114aed269cfe72d96abee4c7183294550b3 (patch)
tree9182c733ca59b012ea5ca1d696e8dc9640594a37 /cpp
parentd4ea81ac900c1da40e162e0979b2b42b5b645951 (diff)
downloadqpid-python-7bd50114aed269cfe72d96abee4c7183294550b3.tar.gz
QPID-5290: fix exception thrown in PagedQueue
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1538684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/PagedQueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/PagedQueue.cpp b/cpp/src/qpid/broker/PagedQueue.cpp
index 862e9c0d48..a0fbf530a1 100644
--- a/cpp/src/qpid/broker/PagedQueue.cpp
+++ b/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()) {