summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/ThreadException.h
diff options
context:
space:
mode:
authorZeroC Staff <git@zeroc.com>2007-12-18 12:43:45 -0500
committerZeroC Staff <git@zeroc.com>2007-12-18 12:43:45 -0500
commit41b6ef772bdf2fa6724cfbf2d71acdb866140eac (patch)
tree33284f1fee522dac6f463034ae52d56ac97114db /cpp/include/IceUtil/ThreadException.h
parentchanging version of Berkeley DB (diff)
downloadice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.tar.bz2
ice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.tar.xz
ice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.zip
Fixed bug #2277
Diffstat (limited to 'cpp/include/IceUtil/ThreadException.h')
-rw-r--r--cpp/include/IceUtil/ThreadException.h17
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;
+};
}