diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-05-24 15:08:54 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-05-24 15:08:54 +0200 |
commit | 8501b9171c4064a2b383945693bb027eefffc2ab (patch) | |
tree | 607eec290ba649cdf3a9205028f3eabf51b6b3db /src/Common | |
parent | 3830a1001b808c883d97602be4107a8a92c44a8b (diff) | |
download | mad-8501b9171c4064a2b383945693bb027eefffc2ab.tar mad-8501b9171c4064a2b383945693bb027eefffc2ab.zip |
Exception-Handling korrigiert
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/SystemManager.cpp | 12 |
1 files 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> *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; } } |