Remove dynamic exceptions
[anna.git] / include / anna / diameter / codec / basetypes / Unsigned64.hpp
index 02b050a..6ab0696 100644 (file)
@@ -35,8 +35,8 @@ class Unsigned64 : public AvpData {
 
 
   // Mandatory for basic diameter type:
-  void codeBasic(char* buffer, int &size) throw(anna::RuntimeException);
-  void setPrintableString(const char * printableString) throw(anna::RuntimeException);
+  void codeBasic(char* buffer, int &size) noexcept(false);
+  void setPrintableString(const char * printableString) noexcept(false);
 
 public:
 
@@ -49,38 +49,38 @@ public:
   *
   * @return Unsigned64 value
   */
-  const U64& getValue() const throw() { return a_value; }
+  const U64& getValue() const { return a_value; }
 
   /**
   * Sets the Unsigned64 value
   *
   * @param value Unsigned64 value
   */
-  void setValue(const U64& value) throw() { a_value = value; }
+  void setValue(const U64& value) { a_value = value; }
   //
   //////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
   // gets
 
-  virtual std::string getFormatName() const throw() { return "Unsigned64"; }
-  virtual int getSize() const throw() { return 8; }
+  virtual std::string getFormatName() const { return "Unsigned64"; }
+  virtual int getSize() const { return 8; }
 
 
   // helpers
 
-  std::string asPrintableString() throw(anna::RuntimeException) {
+  std::string asPrintableString() noexcept(false) {
     return anna::functions::asString((anna::U64)a_value);
   }
 
-  std::string asString() throw(anna::RuntimeException) {
+  std::string asString() noexcept(false) {
     return asPrintableString();
   }
 
 
   // sets
 
-  void decode(const char* buffer, const int size) throw(anna::RuntimeException);
+  void decode(const char* buffer, const int size) noexcept(false);
 };
 
 }