@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
@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,
@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,
@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: