extern int errno;
-void Environment::initialize(char **envp) throw() {
+void Environment::initialize(char **envp) {
LOGMETHOD(TraceMethod tm("Environment", "initialize", ANNA_FILE_LOCATION));
// clear data
a_vars.clear();
}
}
-std::string Environment::getValue(const char* variableName, bool exceptionIfMissing) throw(RuntimeException) {
+std::string Environment::getValue(const char* variableName, bool exceptionIfMissing) noexcept(false) {
if(!variableName)
throw RuntimeException("Invalid NULL variable name!", ANNA_FILE_LOCATION);
return getValue(var, exceptionIfMissing);
}
-std::string Environment::getValue(const std::string &variableName, bool exceptionIfMissing) throw(RuntimeException) {
+std::string Environment::getValue(const std::string &variableName, bool exceptionIfMissing) noexcept(false) {
std::string result = "";
std::map<std::string, std::string>::const_iterator it = a_vars.find(variableName);
}
-void Environment::setVariable(const std::string &name, const std::string &value, bool overwrite) throw(RuntimeException) {
+void Environment::setVariable(const std::string &name, const std::string &value, bool overwrite) noexcept(false) {
if(name == "") throw RuntimeException("Must provide non-empty variable name", ANNA_FILE_LOCATION);
if(setenv(name.c_str(), value.c_str(), overwrite ? 1 : 0) != 0) {
}
-void Environment::unsetVariable(const std::string &name) throw(RuntimeException) {
+void Environment::unsetVariable(const std::string &name) noexcept(false) {
if(name == "") throw RuntimeException("Must provide non-empty variable name", ANNA_FILE_LOCATION);
if(unsetenv(name.c_str()) != 0) {