summaryrefslogtreecommitdiffstats
path: root/src/FrameMultiplexer.cpp
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.cpp
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.cpp')
-rw-r--r--src/FrameMultiplexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FrameMultiplexer.cpp b/src/FrameMultiplexer.cpp
index 4cee0b2..5dc6dca 100644
--- a/src/FrameMultiplexer.cpp
+++ b/src/FrameMultiplexer.cpp
@@ -74,7 +74,7 @@ int FrameMultiplexer::process(std::vector<Buffer*> dataIn, Buffer* dataOut)
// Write subchannel
const auto subchannels = m_etiSource.getSubchannels();
if (subchannels.size() != dataIn.size() - 1) {
- throw std::out_of_range(
+ throw FrameMultiplexerError(
"FrameMultiplexer detected subchannel size change from " +
std::to_string(dataIn.size() - 1) + " to " +
std::to_string(subchannels.size()));
@@ -82,7 +82,7 @@ int FrameMultiplexer::process(std::vector<Buffer*> dataIn, Buffer* dataOut)
auto subchannel = subchannels.begin();
while (in != dataIn.end()) {
if ((*subchannel)->framesizeCu() * 8 != (*in)->getLength()) {
- throw std::out_of_range(
+ throw FrameMultiplexerError(
"FrameMultiplexer detected invalid subchannel size! " +
std::to_string((*subchannel)->framesizeCu() * 8) + " != " +
std::to_string((*in)->getLength()));