diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-05-06 17:39:30 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-05-06 17:39:30 +0200 |
commit | 8324b947487f72fd8cfc439ea5ae5bd1187fff1b (patch) | |
tree | e7fb69f3207654b5e3d4ba260d3f51082b1d399a /src/Client/CommandManager.cpp | |
parent | 5bf3e2229015d93808bb0c2f4729c2c4f4da414e (diff) | |
download | mad-8324b947487f72fd8cfc439ea5ae5bd1187fff1b.tar mad-8324b947487f72fd8cfc439ea5ae5bd1187fff1b.zip |
Exception und ThreadHandler nach Net verschoben
Diffstat (limited to 'src/Client/CommandManager.cpp')
-rw-r--r-- | src/Client/CommandManager.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Client/CommandManager.cpp b/src/Client/CommandManager.cpp index ad88152..f46bdcd 100644 --- a/src/Client/CommandManager.cpp +++ b/src/Client/CommandManager.cpp @@ -140,7 +140,7 @@ void CommandManager::daemonCommandRequestFinished(const Common::Request &request try { request.getResult(); } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -153,7 +153,7 @@ void CommandManager::daemonFSInfoRequestFinished(const Common::Request &request) std::cout << "Host file system usage:" << std::endl; printFSInfo(packet); } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -166,7 +166,7 @@ void CommandManager::daemonStatusRequestFinished(const Common::Request &request) std::cout << "Host status:" << std::endl; printHostStatus(packet); } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -178,7 +178,7 @@ void CommandManager::disconnectRequestFinished(const Common::Request &request) { request.getResult(); disconnect = true; } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -191,7 +191,7 @@ void CommandManager::fsInfoRequestFinished(const Common::Request &request) { std::cout << "Server file system usage:" << std::endl; printFSInfo(packet); } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -204,7 +204,7 @@ void CommandManager::statusRequestFinished(const Common::Request &request) { std::cout << "Server status:" << std::endl; printHostStatus(packet); } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -218,7 +218,7 @@ void CommandManager::userInfoRequestFinished(const Common::Request &request) { std::cout << " " << (unsigned long)packet["uid"] << ", " << (unsigned long)packet["gid"] << ", " << (const std::string&)packet["username"] << ", " << (const std::string&)packet["fullName"] << std::endl << std::endl; } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } @@ -244,7 +244,7 @@ void CommandManager::userListRequestFinished(const Common::Request &request) { std::cout << std::endl; } - catch(Common::Exception &exception) { + catch(Net::Exception &exception) { Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); } |