diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-25 05:08:14 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-25 05:08:14 +0100 |
commit | 2a199ca830cb1338b5c52ca5f147ebef26330d22 (patch) | |
tree | 27cb32b7371a97160dcd1dc1f794312074c18b81 /src/FrameMultiplexer.h | |
parent | 626cfba78e2885200450ff8b4f4cf09ff6d0b830 (diff) | |
download | dabmod-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.h | 10 |
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"; } |