From b7013f1be9a5f09ecae4b37f0986352abfcd0dc1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 07:20:56 +0000 Subject: replaced regular throws with AnytunError::thowErr --- src/plainPacket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plainPacket.cpp') diff --git a/src/plainPacket.cpp b/src/plainPacket.cpp index 6863c48..f3f9a8d 100644 --- a/src/plainPacket.cpp +++ b/src/plainPacket.cpp @@ -34,6 +34,7 @@ #include "datatypes.h" #include "endian.h" #include "plainPacket.h" +#include "anytunError.hpp" PlainPacket::PlainPacket(u_int32_t payload_length, bool allow_realloc) : Buffer(payload_length + sizeof(payload_type_t), allow_realloc) { @@ -103,7 +104,7 @@ void PlainPacket::reinit() if(length_ < (sizeof(payload_type_t))) { payload_type_ = NULL; - throw std::runtime_error("plain packet can't be initialized, buffer is too small"); + AnytunError::throwErr() << "plain packet can't be initialized, buffer is too small"; } } -- cgit v1.2.3