Utils: Implement more flexible SystemException
[senf.git] / Socket / Protocols / DVB / DVBDemuxProtocol.cc
index 0e9847f..1a2c70e 100644 (file)
@@ -32,7 +32,7 @@
 #include <string>
 #include <sys/ioctl.h>
 #include <linux/sockios.h>
-#include "Socket/SocketHandle.hh"
+#include "../../../Socket/SocketHandle.hh"
 
 //#include "DVBDemuxProtocol.mpp"
 #define prefix_
@@ -42,21 +42,21 @@ prefix_ void senf::DVBDemuxProtocol::setBufferSize(unsigned long size)
     const
 {
     if (::ioctl(body().fd(), DMX_SET_BUFFER_SIZE, size) < 0)
-        throw SystemException(errno);
+        throwErrno();
 }
 
 prefix_ void senf::DVBDemuxProtocol::startFiltering()
     const
 {
     if (::ioctl(body().fd(), DMX_START) < 0)
-        throw SystemException(errno);
+        throwErrno();
 }
 
 prefix_ void senf::DVBDemuxProtocol::stopFiltering()
     const
 {
     if (::ioctl(body().fd(), DMX_STOP) < 0)
-        throw SystemException(errno);
+        throwErrno();
 }
 
 prefix_ bool senf::DVBDemuxProtocol::eof()