Ice 3.7 C++11 API Reference
ThreadException.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_UTIL_THREAD_EXCEPTION_H
6 #define ICE_UTIL_THREAD_EXCEPTION_H
7 
8 #include <IceUtil/Exception.h>
9 #include <IceUtil/Time.h>
10 
11 namespace IceUtil
12 {
13 
14 class ICE_API ThreadSyscallException : public SyscallExceptionHelper<ThreadSyscallException>
15 {
16 public:
17 
18  ThreadSyscallException(const char*, int, int);
19  virtual std::string ice_id() const;
20 
21 #ifndef ICE_CPP11_MAPPING
22  virtual ThreadSyscallException* ice_clone() const;
23 #endif
24 };
25 
26 class ICE_API ThreadLockedException : public ExceptionHelper<ThreadLockedException>
27 {
28 public:
29 
30  ThreadLockedException(const char*, int);
31  virtual std::string ice_id() const;
32 
33 #ifndef ICE_CPP11_MAPPING
34  virtual ThreadLockedException* ice_clone() const;
35 #endif
36 };
37 
38 class ICE_API ThreadStartedException : public ExceptionHelper<ThreadStartedException>
39 {
40 public:
41 
42  ThreadStartedException(const char*, int);
43  virtual std::string ice_id() const;
44 
45 #ifndef ICE_CPP11_MAPPING
46  virtual ThreadStartedException* ice_clone() const;
47 #endif
48 
49 };
50 
51 class ICE_API ThreadNotStartedException : public ExceptionHelper<ThreadNotStartedException>
52 {
53 public:
54 
55  ThreadNotStartedException(const char*, int);
56  virtual std::string ice_id() const;
57 
58 #ifndef ICE_CPP11_MAPPING
59  virtual ThreadNotStartedException* ice_clone() const;
60 #endif
61 };
62 
63 class ICE_API BadThreadControlException : public ExceptionHelper<BadThreadControlException>
64 {
65 public:
66 
67  BadThreadControlException(const char*, int);
68  virtual std::string ice_id() const;
69 
70 #ifndef ICE_CPP11_MAPPING
71  virtual BadThreadControlException* ice_clone() const;
72 #endif
73 };
74 
75 class ICE_API InvalidTimeoutException : public ExceptionHelper<InvalidTimeoutException>
76 {
77 public:
78 
79  InvalidTimeoutException(const char*, int, const Time&);
80  virtual std::string ice_id() const;
81  virtual void ice_print(std::ostream&) const;
82 
83 #ifndef ICE_CPP11_MAPPING
84  virtual InvalidTimeoutException* ice_clone() const;
85 #endif
86 
87 private:
88 
89  Time _timeout;
90 };
91 
92 }
93 
94 #endif
IceUtil::ThreadNotStartedException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.
IceUtil::ThreadNotStartedException
Definition: ThreadException.h:52
IceUtil::InvalidTimeoutException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.
IceUtil::ThreadLockedException::ThreadLockedException
ThreadLockedException(const char *, int)
IceUtil::InvalidTimeoutException
Definition: ThreadException.h:76
IceUtil::InvalidTimeoutException::ice_print
virtual void ice_print(std::ostream &) const
Outputs a description of this exception to a stream.
IceUtil::ThreadStartedException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.
IceUtil::InvalidTimeoutException::InvalidTimeoutException
InvalidTimeoutException(const char *, int, const Time &)
IceUtil
Definition: Optional.h:1095
ICE_API
#define ICE_API
Definition: Config.h:197
IceUtil::ThreadNotStartedException::ThreadNotStartedException
ThreadNotStartedException(const char *, int)
IceUtil::BadThreadControlException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.
IceUtil::ThreadSyscallException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.
IceUtil::ThreadStartedException
Definition: ThreadException.h:39
IceUtil::Time
Definition: Time.h:18
Exception.h
IceUtil::ThreadStartedException::ThreadStartedException
ThreadStartedException(const char *, int)
Time.h
IceUtil::ThreadSyscallException
Definition: ThreadException.h:15
IceUtil::ThreadLockedException
Definition: ThreadException.h:27
IceUtil::BadThreadControlException
Definition: ThreadException.h:64
IceUtil::BadThreadControlException::BadThreadControlException
BadThreadControlException(const char *, int)
IceUtil::ExceptionHelper
Helper template for the implementation of Ice::Exception.
Definition: Exception.h:128
IceUtil::ThreadSyscallException::ThreadSyscallException
ThreadSyscallException(const char *, int, int)
IceUtil::ThreadLockedException::ice_id
virtual std::string ice_id() const
Returns the type ID of this exception.