Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
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
11namespace IceUtil
12{
13
14class ICE_API ThreadSyscallException : public SyscallExceptionHelper<ThreadSyscallException>
15{
16public:
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
26class ICE_API ThreadLockedException : public ExceptionHelper<ThreadLockedException>
27{
28public:
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
38class ICE_API ThreadStartedException : public ExceptionHelper<ThreadStartedException>
39{
40public:
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
51class ICE_API ThreadNotStartedException : public ExceptionHelper<ThreadNotStartedException>
52{
53public:
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
63class ICE_API BadThreadControlException : public ExceptionHelper<BadThreadControlException>
64{
65public:
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
75class ICE_API InvalidTimeoutException : public ExceptionHelper<InvalidTimeoutException>
76{
77public:
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
87private:
88
89 Time _timeout;
90};
91
92}
93
94#endif
#define ICE_API
Definition Config.h:197
virtual std::string ice_id() const
Returns the type ID of this exception.
BadThreadControlException(const char *, int)
Helper template for the implementation of Ice::Exception.
Definition Exception.h:128
std::unique_ptr< E > ice_clone() const
Definition Exception.h:133
InvalidTimeoutException(const char *, int, const Time &)
virtual void ice_print(std::ostream &) const
Outputs a description of this exception to a stream.
virtual std::string ice_id() const
Returns the type ID of this exception.
ThreadLockedException(const char *, int)
virtual std::string ice_id() const
Returns the type ID of this exception.
ThreadNotStartedException(const char *, int)
virtual std::string ice_id() const
Returns the type ID of this exception.
virtual std::string ice_id() const
Returns the type ID of this exception.
ThreadStartedException(const char *, int)
ThreadSyscallException(const char *, int, int)
virtual std::string ice_id() const
Returns the type ID of this exception.
Definition Time.h:18
Definition Optional.h:1095
ExceptionHelper< E, SyscallException > SyscallExceptionHelper
Definition Exception.h:300