Remove dynamic exceptions
[anna.git] / example / comm / largeBinaryCodec / main.cpp
index 0b99468..c029c8f 100644 (file)
@@ -25,11 +25,11 @@ public:
       attach ("integer", a_integer);
    }
 
-   void set (const char* value) throw () { a_string = value; }
-   void set (const int value) throw () { a_integer = value; }
+   void set (const char* value) { a_string = value; }
+   void set (const int value) { a_integer = value; }
 
-   const std::string& getString () const throw () { return a_string; }
-   const int getInteger () const throw () { return a_integer; }
+   const std::string& getString () const { return a_string; }
+   const int getInteger () const { return a_integer; }
 
 private:
    std::string a_string;
@@ -43,9 +43,9 @@ public:
 private:
    MyCodec a_input;
 
-   void show (const LargeBinaryCodec& lbc) throw (anna::RuntimeException);
+   void show (const LargeBinaryCodec& lbc) noexcept(false);
 
-   void run () throw (anna::RuntimeException);
+   void run () noexcept(false);
 };
 
 using namespace std;
@@ -82,7 +82,7 @@ Test::Test () :
 }
 
 void Test::run ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& cm (CommandLine::instantiate ());
    LargeBinaryCodec input (1, false);
@@ -110,7 +110,7 @@ void Test::run ()
 }
 
 void Test::show (const LargeBinaryCodec& lbc) 
-   throw (RuntimeException)
+   noexcept(false)
 {
    MyCodec output;