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> |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 5 | #include <Thrift.h> |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 6 | |
| 7 | namespace facebook { namespace thrift { namespace concurrency { |
| 8 | |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 9 | class NoSuchTaskException : public facebook::thrift::TException {}; |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 10 | |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 11 | class UncancellableTaskException : public facebook::thrift::TException {}; |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 12 | |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 13 | class InvalidArgumentException : public facebook::thrift::TException {}; |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 14 | |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 15 | class IllegalStateException : public facebook::thrift::TException {}; |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 16 | |
Aditya Agarwal | fdef47e | 2007-02-07 03:54:18 +0000 | [diff] [blame^] | 17 | class TimedOutException : public facebook::thrift::TException {}; |
Marc Slemko | 525c202 | 2006-07-20 00:29:35 +0000 | [diff] [blame] | 18 | |
| 19 | }}} // facebook::thrift::concurrency |
| 20 | |
Mark Slee | f5f2be4 | 2006-09-05 21:05:31 +0000 | [diff] [blame] | 21 | #endif // #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_ |