aboutsummaryrefslogtreecommitdiffstats
path: root/gr-filter/lib
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2019-12-21 19:38:44 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-01 19:40:43 -0800
commit183a35ee554fd2034acbc5ac91e32abd046d5de1 (patch)
treeeb77ac056d06a81c2a9e2c9f7b4901cac63077d3 /gr-filter/lib
parentdigital: Change Umlaut ΓΌ to ue to fix string encoding problem (diff)
downloadgnuradio-183a35ee554fd2034acbc5ac91e32abd046d5de1.tar.xz
gnuradio-183a35ee554fd2034acbc5ac91e32abd046d5de1.zip
Remove newlines from exception messages
Diffstat (limited to 'gr-filter/lib')
-rw-r--r--gr-filter/lib/interp_fir_filter_impl.cc6
-rw-r--r--gr-filter/lib/mmse_fir_interpolator_cc.cc2
-rw-r--r--gr-filter/lib/mmse_fir_interpolator_ff.cc2
-rw-r--r--gr-filter/lib/mmse_interp_differentiator_cc.cc2
-rw-r--r--gr-filter/lib/mmse_interp_differentiator_ff.cc2
-rw-r--r--gr-filter/lib/pfb_arb_resampler.cc6
-rw-r--r--gr-filter/lib/pfb_channelizer_ccf_impl.cc2
-rw-r--r--gr-filter/lib/pfb_synthesizer_ccf_impl.cc4
8 files changed, 13 insertions, 13 deletions
diff --git a/gr-filter/lib/interp_fir_filter_impl.cc b/gr-filter/lib/interp_fir_filter_impl.cc
index 666998952d..eefe03f4ae 100644
--- a/gr-filter/lib/interp_fir_filter_impl.cc
+++ b/gr-filter/lib/interp_fir_filter_impl.cc
@@ -52,11 +52,11 @@ interp_fir_filter_impl<IN_T, OUT_T, TAP_T>::interp_fir_filter_impl(
d_firs(interpolation)
{
if (interpolation == 0) {
- throw std::out_of_range("interp_fir_filter_impl: interpolation must be > 0\n");
+ throw std::out_of_range("interp_fir_filter_impl: interpolation must be > 0");
}
if (taps.empty()) {
- throw std::runtime_error("interp_fir_filter_impl: no filter taps provided.\n");
+ throw std::runtime_error("interp_fir_filter_impl: no filter taps provided.");
}
std::vector<TAP_T> dummy_taps;
@@ -94,7 +94,7 @@ void interp_fir_filter_impl<IN_T, OUT_T, TAP_T>::set_taps(const std::vector<TAP_
if (d_new_taps.size() % this->interpolation() != 0) {
throw std::runtime_error(
- "interp_fir_filter_impl: error setting interpolator taps.\n");
+ "interp_fir_filter_impl: error setting interpolator taps.");
}
}
diff --git a/gr-filter/lib/mmse_fir_interpolator_cc.cc b/gr-filter/lib/mmse_fir_interpolator_cc.cc
index 9c393a433b..391860cdcc 100644
--- a/gr-filter/lib/mmse_fir_interpolator_cc.cc
+++ b/gr-filter/lib/mmse_fir_interpolator_cc.cc
@@ -56,7 +56,7 @@ gr_complex mmse_fir_interpolator_cc::interpolate(const gr_complex input[], float
int imu = (int)rint(mu * NSTEPS);
if ((imu < 0) || (imu > NSTEPS)) {
- throw std::runtime_error("mmse_fir_interpolator_cc: imu out of bounds.\n");
+ throw std::runtime_error("mmse_fir_interpolator_cc: imu out of bounds.");
}
gr_complex r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_fir_interpolator_ff.cc b/gr-filter/lib/mmse_fir_interpolator_ff.cc
index b1e3ec43e7..c046119651 100644
--- a/gr-filter/lib/mmse_fir_interpolator_ff.cc
+++ b/gr-filter/lib/mmse_fir_interpolator_ff.cc
@@ -56,7 +56,7 @@ float mmse_fir_interpolator_ff::interpolate(const float input[], float mu) const
int imu = (int)rint(mu * NSTEPS);
if ((imu < 0) || (imu > NSTEPS)) {
- throw std::runtime_error("mmse_fir_interpolator_ff: imu out of bounds.\n");
+ throw std::runtime_error("mmse_fir_interpolator_ff: imu out of bounds.");
}
float r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_interp_differentiator_cc.cc b/gr-filter/lib/mmse_interp_differentiator_cc.cc
index 3d81b5253f..b25dd8b6f9 100644
--- a/gr-filter/lib/mmse_interp_differentiator_cc.cc
+++ b/gr-filter/lib/mmse_interp_differentiator_cc.cc
@@ -57,7 +57,7 @@ gr_complex mmse_interp_differentiator_cc::differentiate(const gr_complex input[]
int imu = (int)rint(mu * DNSTEPS);
if ((imu < 0) || (imu > DNSTEPS)) {
- throw std::runtime_error("mmse_interp_differentiator_cc: imu out of bounds.\n");
+ throw std::runtime_error("mmse_interp_differentiator_cc: imu out of bounds.");
}
gr_complex r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_interp_differentiator_ff.cc b/gr-filter/lib/mmse_interp_differentiator_ff.cc
index 431eff630c..52862ff9a6 100644
--- a/gr-filter/lib/mmse_interp_differentiator_ff.cc
+++ b/gr-filter/lib/mmse_interp_differentiator_ff.cc
@@ -56,7 +56,7 @@ float mmse_interp_differentiator_ff::differentiate(const float input[], float mu
int imu = (int)rint(mu * DNSTEPS);
if ((imu < 0) || (imu > DNSTEPS)) {
- throw std::runtime_error("mmse_interp_differentiator_ff: imu out of bounds.\n");
+ throw std::runtime_error("mmse_interp_differentiator_ff: imu out of bounds.");
}
float r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/pfb_arb_resampler.cc b/gr-filter/lib/pfb_arb_resampler.cc
index 8332db5490..dfebb1fa1b 100644
--- a/gr-filter/lib/pfb_arb_resampler.cc
+++ b/gr-filter/lib/pfb_arb_resampler.cc
@@ -176,7 +176,7 @@ void pfb_arb_resampler_ccf::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_ccf: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_ccf: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
@@ -377,7 +377,7 @@ void pfb_arb_resampler_ccc::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_ccc: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_ccc: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
@@ -575,7 +575,7 @@ void pfb_arb_resampler_fff::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_fff: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_fff: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
diff --git a/gr-filter/lib/pfb_channelizer_ccf_impl.cc b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
index 2fbd83cd19..ecdeee3e8f 100644
--- a/gr-filter/lib/pfb_channelizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
@@ -129,7 +129,7 @@ void pfb_channelizer_ccf_impl::set_channel_map(const std::vector<int>& map)
unsigned int max = (unsigned int)*std::max_element(map.begin(), map.end());
if (max >= d_nfilts) {
throw std::invalid_argument(
- "pfb_channelizer_ccf_impl::set_channel_map: map range out of bounds.\n");
+ "pfb_channelizer_ccf_impl::set_channel_map: map range out of bounds.");
}
d_channel_map = map;
}
diff --git a/gr-filter/lib/pfb_synthesizer_ccf_impl.cc b/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
index 8c964d84e6..206b21dd8c 100644
--- a/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
@@ -54,7 +54,7 @@ pfb_synthesizer_ccf_impl::pfb_synthesizer_ccf_impl(unsigned int numchans,
d_twox = (twox ? 2 : 1);
if (d_numchans % d_twox != 0) {
throw std::invalid_argument("pfb_synthesizer_ccf_impl: number of channels must "
- "be even for 2x oversampling.\n");
+ "be even for 2x oversampling.");
}
d_filters = std::vector<kernel::fir_filter_with_buffer_ccf*>(d_twox * d_numchans);
@@ -219,7 +219,7 @@ void pfb_synthesizer_ccf_impl::set_channel_map(const std::vector<int>& map)
int min = *std::min_element(map.begin(), map.end());
if ((max >= static_cast<int>(d_twox * d_numchans)) || (min < 0)) {
throw std::invalid_argument(
- "pfb_synthesizer_ccf_impl::set_channel_map: map range out of bounds.\n");
+ "pfb_synthesizer_ccf_impl::set_channel_map: map range out of bounds.");
}
d_channel_map = map;