summaryrefslogtreecommitdiffstats
path: root/src/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/ConfigManager.cpp2
-rw-r--r--src/Core/ConnectionManager.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Core/ConfigManager.cpp b/src/Core/ConfigManager.cpp
index 4484420..9361493 100644
--- a/src/Core/ConfigManager.cpp
+++ b/src/Core/ConfigManager.cpp
@@ -38,7 +38,7 @@ bool ConfigManager::parseLine(const std::vector<std::string> &section, const std
try {
listeners.push_back(Net::IPAddress(value));
}
- catch(Net::InvalidAddressException &e) {
+ catch(Common::Exception &e) {
// TODO Logging
}
}
diff --git a/src/Core/ConnectionManager.cpp b/src/Core/ConnectionManager.cpp
index 546d097..ceefe18 100644
--- a/src/Core/ConnectionManager.cpp
+++ b/src/Core/ConnectionManager.cpp
@@ -81,7 +81,7 @@ ConnectionManager::ConnectionManager() {
try {
listeners.push_back(new Net::Listener(configManager->getX509CertFile(), configManager->getX509KeyFile()));
}
- catch(Net::Exception &e) {
+ catch(Common::Exception &e) {
// TODO Log error
}
}
@@ -90,7 +90,7 @@ ConnectionManager::ConnectionManager() {
try {
listeners.push_back(new Net::Listener(configManager->getX509CertFile(), configManager->getX509KeyFile(), *address));
}
- catch(Net::Exception &e) {
+ catch(Common::Exception &e) {
// TODO Log error
}
}
@@ -169,7 +169,7 @@ Net::Connection* ConnectionManager::getDaemonConnection(const std::string &name)
throw Common::Exception(Common::Exception::UNKNOWN_DAEMON);
if(!daemon->second)
- throw Common::Exception(Common::Exception::DAEMON_INACTIVE);
+ throw Common::Exception(Common::Exception::NOT_AVAILABLE);
return daemon->second;
}