From 37d607c47b5149003c1f6e48a5133a7deaa0c26b Mon Sep 17 00:00:00 2001
From: tho <tho@wiback.org>
Date: Fri, 29 Feb 2008 16:53:24 +0000
Subject: [PATCH] added more meaningful exception text

---
 Socket/Protocols/DVB/DVBDemuxSocketProtocol.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Socket/Protocols/DVB/DVBDemuxSocketProtocol.cc b/Socket/Protocols/DVB/DVBDemuxSocketProtocol.cc
index ce4cef4ad..beb974e2e 100644
--- a/Socket/Protocols/DVB/DVBDemuxSocketProtocol.cc
+++ b/Socket/Protocols/DVB/DVBDemuxSocketProtocol.cc
@@ -42,21 +42,22 @@ prefix_ void senf::DVBDemuxSocketProtocol::setBufferSize(unsigned long size)
     const
 {
     if (::ioctl(fd(), DMX_SET_BUFFER_SIZE, size) < 0)
-        throw SystemException();
+        throw SystemException(
+                "Could not set the size of the buffer on DVB adapter. requested size: ") << size;
 }
 
 prefix_ void senf::DVBDemuxSocketProtocol::startFiltering()
     const
 {
     if (::ioctl(fd(), DMX_START) < 0)
-        throw SystemException();
+        throw SystemException("Could not start filtering operation on DVB adapter");
 }
 
 prefix_ void senf::DVBDemuxSocketProtocol::stopFiltering()
     const
 {
     if (::ioctl(fd(), DMX_STOP) < 0)
-        throw SystemException();
+        throw SystemException("Could not stop filtering operation on DVB adapter");
 }
 
 prefix_ bool senf::DVBDemuxSocketProtocol::eof()
-- 
GitLab