summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/BodyHolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/BodyHolder.cpp')
-rw-r--r--cpp/src/qpid/framing/BodyHolder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/BodyHolder.cpp b/cpp/src/qpid/framing/BodyHolder.cpp
index de971b5b28..1b2f74de2c 100644
--- a/cpp/src/qpid/framing/BodyHolder.cpp
+++ b/cpp/src/qpid/framing/BodyHolder.cpp
@@ -59,7 +59,7 @@ void BodyHolder::decode(uint8_t type, Buffer& buffer, uint32_t size) {
case CONTENT_BODY: *this=in_place<AMQContentBody>(); break;
case HEARTBEAT_BODY: *this=in_place<AMQHeartbeatBody>(); break;
default:
- throw SyntaxErrorException(QPID_MSG("Invalid frame type " << type));
+ throw IllegalArgumentException(QPID_MSG("Invalid frame type " << type));
}
get()->decode(buffer, size);
}