00001
00016 #ifndef _DLR_THREAD_EXCEPTION_H_
00017 #define _DLR_THREAD_EXCEPTION_H_
00018
00019 #include <dlrCommon/exception.h>
00020
00021 namespace dlr {
00022
00029 namespace thread {
00030
00036 class OverflowException : public Exception {
00037 public:
00038 OverflowException() throw()
00039 : Exception("", "OverflowException") {}
00040
00041 OverflowException(const char* message) throw()
00042 : Exception(message, "OverflowException") {}
00043
00044 OverflowException(const char* message, const char* fileName,
00045 int lineNumber) throw()
00046 : Exception(message, "OverflowException", 0, fileName, lineNumber) {}
00047
00048 OverflowException(const char* message, const char* functionName,
00049 const char* fileName, int lineNumber) throw()
00050 : Exception(message, "OverflowException", functionName, fileName,
00051 lineNumber) {}
00052
00053 OverflowException(const OverflowException& source) throw()
00054 : Exception(source) {}
00055
00056 virtual ~OverflowException() throw() {}
00057 };
00058
00059
00065 class SyncException : public Exception {
00066 public:
00067 SyncException() throw()
00068 : Exception("", "SyncException") {}
00069
00070 SyncException(const char* message) throw()
00071 : Exception(message, "SyncException") {}
00072
00073 SyncException(const char* message, const char* fileName,
00074 int lineNumber) throw()
00075 : Exception(message, "SyncException", 0, fileName, lineNumber) {}
00076
00077 SyncException(const char* message, const char* functionName,
00078 const char* fileName, int lineNumber) throw()
00079 : Exception(message, "SyncException", functionName, fileName,
00080 lineNumber) {}
00081
00082 SyncException(const SyncException& source) throw()
00083 : Exception(source) {}
00084
00085 virtual ~SyncException() throw() {}
00086 };
00087
00088
00089
00094 class TimeoutException : public Exception {
00095 public:
00096 TimeoutException() throw()
00097 : Exception("", "TimeoutException") {}
00098
00099 TimeoutException(const char* message) throw()
00100 : Exception(message, "TimeoutException") {}
00101
00102 TimeoutException(const char* message, const char* fileName,
00103 int lineNumber) throw()
00104 : Exception(message, "TimeoutException", 0, fileName, lineNumber) {}
00105
00106 TimeoutException(const char* message, const char* functionName,
00107 const char* fileName, int lineNumber) throw()
00108 : Exception(message, "TimeoutException", functionName, fileName,
00109 lineNumber) {}
00110
00111 TimeoutException(const TimeoutException& source) throw()
00112 : Exception(source) {}
00113
00114 virtual ~TimeoutException() throw() {}
00115 };
00116
00117 }
00118
00119 }
00120
00121 #endif // #ifndef _DLR_THREAD_EXCEPTION_H_