summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/FieldValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/FieldValue.cpp')
-rw-r--r--cpp/src/qpid/framing/FieldValue.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/src/qpid/framing/FieldValue.cpp b/cpp/src/qpid/framing/FieldValue.cpp
index a7535ae4b9..5526c9cb72 100644
--- a/cpp/src/qpid/framing/FieldValue.cpp
+++ b/cpp/src/qpid/framing/FieldValue.cpp
@@ -20,8 +20,7 @@
*/
#include "FieldValue.h"
#include "Buffer.h"
-#include "qpid/QpidError.h"
-
+#include "qpid/framing/reply_exceptions.h"
namespace qpid {
namespace framing {
@@ -75,9 +74,7 @@ void FieldValue::decode(Buffer& buffer)
data.reset(new FixedWidthValue<0>());
break;
default:
- std::stringstream out;
- out << "Unknown field table value type: " << typeOctet;
- THROW_QPID_ERROR(FRAMING_ERROR, out.str());
+ throw SyntaxErrorException(QPID_MSG("Unknown field table value type: " << (int)typeOctet));
}
data->decode(buffer);
}