summaryrefslogtreecommitdiffstats
path: root/src/FrameMultiplexer.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 05:08:14 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 05:08:14 +0100
commit2a199ca830cb1338b5c52ca5f147ebef26330d22 (patch)
tree27cb32b7371a97160dcd1dc1f794312074c18b81 /src/FrameMultiplexer.h
parent626cfba78e2885200450ff8b4f4cf09ff6d0b830 (diff)
downloaddabmod-2a199ca830cb1338b5c52ca5f147ebef26330d22.tar.gz
dabmod-2a199ca830cb1338b5c52ca5f147ebef26330d22.tar.bz2
dabmod-2a199ca830cb1338b5c52ca5f147ebef26330d22.zip
Do not use out_of_range for multiplex reconfiguration error
Diffstat (limited to 'src/FrameMultiplexer.h')
-rw-r--r--src/FrameMultiplexer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FrameMultiplexer.h b/src/FrameMultiplexer.h
index 680cdc7..4d68d88 100644
--- a/src/FrameMultiplexer.h
+++ b/src/FrameMultiplexer.h
@@ -38,12 +38,18 @@
#include <sys/types.h>
+class FrameMultiplexerError : public std::runtime_error {
+ public:
+ FrameMultiplexerError(const char* msg) :
+ std::runtime_error(msg) {}
+ FrameMultiplexerError(const std::string& msg) :
+ std::runtime_error(msg) {}
+};
class FrameMultiplexer : public ModMux
{
public:
- FrameMultiplexer(
- const EtiSource& etiSource);
+ FrameMultiplexer(const EtiSource& etiSource);
int process(std::vector<Buffer*> dataIn, Buffer* dataOut);
const char* name() { return "FrameMultiplexer"; }