Remove dynamic exceptions
[anna.git] / include / anna / diameter / codec / basetypes / OctetString.hpp
index cd765e5..a21ddee 100644 (file)
@@ -33,12 +33,12 @@ class OctetString : 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);
 
 protected:
 
-  void assertPrintable() const throw(anna::RuntimeException);
+  void assertPrintable() const noexcept(false);
 
 public:
 
@@ -51,29 +51,29 @@ public:
   *
   * @return OctetString value
   */
-  const std::string& getValue() const throw() { return a_value; }
+  const std::string& getValue() const { return a_value; }
 
   /**
   * Sets the OctetString value
   *
   * @param value OctetString value
   */
-  void setValue(const std::string& value) throw() { a_value = value; }
+  void setValue(const std::string& value) { a_value = value; }
   //
   //////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
   // gets
   // virtual for Unknown format container
-  virtual std::string getFormatName() const throw() { return "OctetString"; }
-  virtual int getSize() const throw() { return a_value.size(); }
+  virtual std::string getFormatName() const { return "OctetString"; }
+  virtual int getSize() const { return a_value.size(); }
 
 
   // helpers
 
   // sets
 
-  void decode(const char* buffer, const int size) throw(anna::RuntimeException);
+  void decode(const char* buffer, const int size) noexcept(false);
 };
 
 }