Mark Slee | f5f2be4 | 2006-09-05 21:05:31 +0000 | [diff] [blame] | 1 | #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_ |
| 2 | #define _THRIFT_CONCURRENCY_EXCEPTION_H_ 1 |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 3 | |
| 4 | #include <exception> |
| 5 | |
| 6 | namespace facebook { namespace thrift { namespace concurrency { |
| 7 | |
| 8 | class NoSuchTaskException : public std::exception {}; |
| 9 | |
| 10 | class UncancellableTaskException : public std::exception {}; |
| 11 | |
| 12 | class InvalidArgumentException : public std::exception {}; |
| 13 | |
| 14 | class IllegalStateException : public std::exception {}; |
| 15 | |
| 16 | class TimedOutException : public std::exception {}; |
| 17 | |
| 18 | }}} // facebook::thrift::concurrency |
| 19 | |
Mark Slee | f5f2be4 | 2006-09-05 21:05:31 +0000 | [diff] [blame] | 20 | #endif // #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_ |