diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-11 12:07:49 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-11 12:07:49 +0100 |
commit | c7795fcd30a6649eede1abac18bcfbfd0ecd0975 (patch) | |
tree | c2d68bbd6ce03cdbb94a6dc32e695203d42a9c98 /lib/edi/STIWriter.cpp | |
parent | b5d43cff287d75de370ee94193b1162b5ab1038c (diff) | |
download | dabmux-c7795fcd30a6649eede1abac18bcfbfd0ecd0975.tar.gz dabmux-c7795fcd30a6649eede1abac18bcfbfd0ecd0975.tar.bz2 dabmux-c7795fcd30a6649eede1abac18bcfbfd0ecd0975.zip |
Pull changes from common 887a122 and d609df3
Diffstat (limited to 'lib/edi/STIWriter.cpp')
-rw-r--r-- | lib/edi/STIWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/edi/STIWriter.cpp b/lib/edi/STIWriter.cpp index 389a838..a7e4f20 100644 --- a/lib/edi/STIWriter.cpp +++ b/lib/edi/STIWriter.cpp @@ -95,7 +95,7 @@ void STIWriter::update_edi_time( uint32_t seconds) { if (not m_proto_valid) { - throw std::logic_error("Cannot update time before protocol"); + throw std::runtime_error("Cannot update time before protocol"); } m_utco = utco; @@ -109,15 +109,15 @@ void STIWriter::update_edi_time( void STIWriter::assemble() { if (not m_proto_valid) { - throw std::logic_error("Cannot assemble STI before protocol"); + throw std::runtime_error("Cannot assemble STI before protocol"); } if (not m_management_data_valid) { - throw std::logic_error("Cannot assemble STI before management data"); + throw std::runtime_error("Cannot assemble STI before management data"); } if (not m_payload_valid) { - throw std::logic_error("Cannot assemble STI without frame data"); + throw std::runtime_error("Cannot assemble STI without frame data"); } // TODO check time validity |