Monitor geht

This commit is contained in:
Tristan Krause 2019-04-05 10:38:59 +02:00
parent 5a058dd18c
commit 00f0be902d
6 changed files with 135 additions and 45 deletions

View file

@ -12,10 +12,10 @@ public:
{
}
explicit TimeoutException(const std::string& message, int timeout) : msg(message), timeout(timeout)
explicit TimeoutException(const std::string& message, int timeout) : msg(message), m_timeout(timeout)
{
if(!msg.length())
msg = "Timeout reached (" + std::to_string(timeout) + ")";
msg = "Timeout reached (" + std::to_string(m_timeout) + ")";
}
virtual ~TimeoutException() throw ()
@ -29,7 +29,7 @@ public:
protected:
std::string msg;
int timeout;
int m_timeout;
};
#endif // TIMEOUTEXCEPTION_H