summaryrefslogtreecommitdiff
path: root/src/plainPacket.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 07:20:56 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 07:20:56 +0000
commitb7013f1be9a5f09ecae4b37f0986352abfcd0dc1 (patch)
treef890c7677d27953afaf05215a9c91a86b23897bd /src/plainPacket.cpp
parentfixed signalController on unix (diff)
replaced regular throws with AnytunError::thowErr
Diffstat (limited to 'src/plainPacket.cpp')
-rw-r--r--src/plainPacket.cpp3
1 files changed, 2 insertions, 1 deletions
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";
}
}