Remove dynamic exceptions
[anna.git] / include / anna / core / util / Environment.hpp
index f236a3e..32f4282 100644 (file)
@@ -34,7 +34,7 @@ public:
     @param envp Environment array passed on main function as third argument.
     Cache data is cleared if NULL passed, allowing to get current environment values for variables.
   */
-  void initialize(char **envp = NULL) throw();
+  void initialize(char **envp = NULL) ;
 
   /**
     Return associated value (could be empty). This value could be cached at initialization (envp array from main function), if not, would be
@@ -45,8 +45,8 @@ public:
 
     @return Environment value.
   */
-  std::string getValue(const char* variableName, bool exceptionIfMissing = false) throw(RuntimeException);
-  std::string getValue(const std::string &variableName, bool exceptionIfMissing = false) throw(RuntimeException);
+  std::string getValue(const char* variableName, bool exceptionIfMissing = false) noexcept(false);
+  std::string getValue(const std::string &variableName, bool exceptionIfMissing = false) noexcept(false);
 
   /**
     Sets an environment variable. If an empty variable name is provided, or environment set operation fails,
@@ -56,7 +56,7 @@ public:
     @param value Variable value
     @param overwrite Overwrite an existing variable name/value or keep old value if exists
   */
-  void setVariable(const std::string &name, const std::string &value, bool overwrite = true) throw(RuntimeException);
+  void setVariable(const std::string &name, const std::string &value, bool overwrite = true) noexcept(false);
 
   /**
     Unsets an environment variable (different than set empty string). If an empty variable name is provided,
@@ -64,7 +64,7 @@ public:
 
     @param name Variable name. If empty, nothing is done.
   */
-  void unsetVariable(const std::string &name) throw(RuntimeException);
+  void unsetVariable(const std::string &name) noexcept(false);
 
 
 private: