Remove dynamic exceptions
[anna.git] / include / anna / ldap / Attribute.hpp
index fde5c79..0447c75 100644 (file)
@@ -36,19 +36,19 @@ public:
      Devuelve el nombre del atributo.
      \return El nombre del atributo.
   */
-  const std::string& getName() const throw() { return a_name; }
+  const std::string& getName() const { return a_name; }
 
   /**
      Devuelve el iterador al comienzo de la lista de valores asociados a este atributo.
      \return El iterador al comienzo de la lista de valores asociados a este atributo.
   */
-  const_value_iterator value_begin() const throw() { return a_values.begin(); }
+  const_value_iterator value_begin() const { return a_values.begin(); }
 
   /**
      Devuelve el iterador al final de la lista de valores asociados a este atributo.
      \return El iterador al final de la lista de valores asociados a este atributo.
   */
-  const_value_iterator value_end() const throw() { return a_values.end(); }
+  const_value_iterator value_end() const { return a_values.end(); }
 
   /**
      Devuelve el valor asociado al iterador recibido como parametro.
@@ -56,7 +56,7 @@ public:
      entre [#value_begin, #value_end).
      \return El valor referenciado por el iterador.
   */
-  static const std::string& value(const_value_iterator ii) throw() { return *value_container::data(ii); }
+  static const std::string& value(const_value_iterator ii) { return *value_container::data(ii); }
 
 private:
   std::string a_name;
@@ -64,13 +64,13 @@ private:
 
   Attribute() {;}
 
-  void setName(const std::string& name) throw() { a_name = name; }
+  void setName(const std::string& name) { a_name = name; }
 
-  void add(const std::string& value) throw(RuntimeException) {
+  void add(const std::string& value) noexcept(false) {
     std::string* newValue = a_values.create();
     *newValue = value;
   }
-  void clear() throw() { a_name.clear(); a_values.clear(); }
+  void clear() { a_name.clear(); a_values.clear(); }
 
   friend class Session;
   friend class Response;