diff --git a/src/ByteStream.cpp b/src/ByteStream.cpp index 93a992c8e24b2b68f7d4272079c5c74230bb9bd2..be87b8bc8de7b365e29ef0a226a6dc2cce854a36 100644 --- a/src/ByteStream.cpp +++ b/src/ByteStream.cpp @@ -18,6 +18,7 @@ #include "ByteStream.h" #include "PacketLibDemo.h" +#include "PacketException.h" #include "Utility.h" #include "lz4.h" #include "lz4hc.h" @@ -228,7 +229,7 @@ long PacketLib::ByteStream::getValue(dword start, word dim) byte b1, b2; if(start >= byteInTheStream) - throw new PacketException("PacketLib::ByteStream::getValue() start greater than the size of the ByteStream"); + throw PacketException("PacketLib::ByteStream::getValue() start greater than the size of the ByteStream", 0); /// only 1 or 2 bytes if(dim == 0 || dim > 2)