From 8501b9171c4064a2b383945693bb027eefffc2ab Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 May 2009 15:08:54 +0200 Subject: Exception-Handling korrigiert --- src/Common/SystemManager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Common/SystemManager.cpp b/src/Common/SystemManager.cpp index 3c89a33..e58c2ba 100644 --- a/src/Common/SystemManager.cpp +++ b/src/Common/SystemManager.cpp @@ -43,7 +43,7 @@ void SystemManager::getUptimeInfo(unsigned long *uptime, unsigned long *idleTime return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -60,7 +60,7 @@ void SystemManager::getMemoryInfo(unsigned long *totalMem, unsigned long *freeMe return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -77,7 +77,7 @@ void SystemManager::getLoadInfo(unsigned long *currentLoad, unsigned long *nProc return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -94,7 +94,7 @@ void SystemManager::getFSInfo(std::vector *fsInfo) throw(Net::Exception) return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -111,7 +111,7 @@ void SystemManager::shutdown() throw(Net::Exception) { return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -128,7 +128,7 @@ void SystemManager::reboot() throw(Net::Exception) { return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } -- cgit v1.2.3