From f29776e2c39c06c958e7b4dfeae8883b47305969 Mon Sep 17 00:00:00 2001
From: jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Mon, 28 May 2007 16:46:12 +0000
Subject: Trial fix for ticket:153

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5552 221aa14e-8319-0410-a670-987f0aec2ac5
---
 gnuradio-core/src/lib/general/gr_firdes.i | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

(limited to 'gnuradio-core/src')

diff --git a/gnuradio-core/src/lib/general/gr_firdes.i b/gnuradio-core/src/lib/general/gr_firdes.i
index a0ea2f4533..71f0b4ed76 100644
--- a/gnuradio-core/src/lib/general/gr_firdes.i
+++ b/gnuradio-core/src/lib/general/gr_firdes.i
@@ -39,7 +39,7 @@ class gr_firdes {
 	    double cutoff_freq,		// Hz center of transition band
 	    double transition_width,	// Hz width of transition band
 	    win_type window = WIN_HAMMING,
-	    double beta = 6.76);		// used only with Kaiser
+	    double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
 
   /*!
    * \brief use "window method" to design a high-pass FIR filter
@@ -61,7 +61,7 @@ class gr_firdes {
 	     double cutoff_freq,		// Hz center of transition band
 	     double transition_width,		// Hz width of transition band
 	     win_type window = WIN_HAMMING,
-	     double beta = 6.76);		// used only with Kaiser
+	     double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
 
   /*!
    * \brief use "window method" to design a band-pass FIR filter
@@ -85,7 +85,7 @@ class gr_firdes {
 	     double high_cutoff_freq,		// Hz center of transition band
 	     double transition_width,		// Hz width of transition band
 	     win_type window = WIN_HAMMING,
-	     double beta = 6.76);		// used only with Kaiser
+	     double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
 
 
   /*!
@@ -111,7 +111,7 @@ class gr_firdes {
 	     double high_cutoff_freq,		// Hz center of transition band
 	     double transition_width,		// Hz width of transition band
 	     win_type window = WIN_HAMMING,
-	     double beta = 6.76);		// used only with Kaiser
+	     double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
 
 
   /*!
@@ -137,7 +137,7 @@ class gr_firdes {
 	       double high_cutoff_freq,		// Hz center of transition band
 	       double transition_width,		// Hz width of transition band
 	       win_type window = WIN_HAMMING,
-	       double beta = 6.76);		// used only with Kaiser
+	       double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
 
   /*!\brief design a Hilbert Transform Filter
    *
@@ -148,7 +148,7 @@ class gr_firdes {
   static std::vector<float>
   hilbert (unsigned int ntaps,
 	   win_type windowtype = WIN_RECTANGULAR,
-	   double beta = 6.76);
+	   double beta = 6.76) throw(std::out_of_range);
    
   /*!
    * \brief design a Root Cosine FIR Filter (do we need a window?)
@@ -164,7 +164,7 @@ class gr_firdes {
 		      double sampling_freq,
 		      double symbol_rate,       // Symbol rate, NOT bitrate (unless BPSK)
 		      double alpha,             // Excess Bandwidth Factor
-		      int ntaps);
+		      int ntaps) throw(std::out_of_range);
 
   /*!
    * \brief design a Gaussian filter
@@ -178,10 +178,11 @@ class gr_firdes {
   gaussian (double gain,
 	    double spb,       
 	    double bt,              // Bandwidth to bitrate ratio
-	    int ntaps);
+	    int ntaps) throw(std::out_of_range);
 
   /*!
    * Return window given type, ntaps and optional beta.
    */
-  static std::vector<float> gr_firdes::window (win_type type, int ntaps, double beta);
+  static std::vector<float> gr_firdes::window (win_type type, int ntaps, double beta) 
+    throw(std::runtime_error);
 };
-- 
cgit v1.2.3