Skip to content
Snippets Groups Projects
Commit 37d607c4 authored by tho's avatar tho
Browse files

added more meaningful exception text

parent ff004f3c
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment