From 037c28c0c658b44529783b79a6b895e3b89dc699 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 23 Oct 2007 12:41:16 +0000 Subject: More tidying up of field table API git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@587480 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueuePolicy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/QueuePolicy.cpp') diff --git a/cpp/src/qpid/broker/QueuePolicy.cpp b/cpp/src/qpid/broker/QueuePolicy.cpp index 620822cddc..9b9717def0 100644 --- a/cpp/src/qpid/broker/QueuePolicy.cpp +++ b/cpp/src/qpid/broker/QueuePolicy.cpp @@ -19,6 +19,7 @@ * */ #include "QueuePolicy.h" +#include "qpid/framing/FieldValue.h" using namespace qpid::broker; using namespace qpid::framing; @@ -60,7 +61,7 @@ int QueuePolicy::getInt(const FieldTable& settings, const std::string& key, int // restricts the values that can be set on the queue policy. try { return settings.getInt(key); - } catch (FieldNotFoundException& ignore) { + } catch (FieldValueException& ignore) { return defaultValue; } } -- cgit v1.2.1