diff options
Diffstat (limited to 'cpp/include/IceUtil/ThreadException.h')
-rw-r--r-- | cpp/include/IceUtil/ThreadException.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/ThreadException.h b/cpp/include/IceUtil/ThreadException.h index ff4b85e30e4..cf6c6289c9a 100644 --- a/cpp/include/IceUtil/ThreadException.h +++ b/cpp/include/IceUtil/ThreadException.h @@ -11,6 +11,7 @@ #define ICE_UTIL_THREAD_EXCEPTION_H #include <IceUtil/Exception.h> +#include <IceUtil/Time.h> namespace IceUtil { @@ -87,6 +88,22 @@ private: static const char* _name; }; + +class ICE_UTIL_API InvalidTimeoutException : public Exception +{ +public: + + InvalidTimeoutException(const char*, int, const Time&); + virtual std::string ice_name() const; + virtual void ice_print(std::ostream&) const; + virtual Exception* ice_clone() const; + virtual void ice_throw() const; + +private: + + Time _timeout; + static const char* _name; +}; } |