blob: 79a7a29bc62703f10b3493b66db1c278578e5f8a [file] [log] [blame]
Mark Sleef5f2be42006-09-05 21:05:31 +00001#ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_
2#define _THRIFT_CONCURRENCY_EXCEPTION_H_ 1
Marc Slemko525c2022006-07-20 00:29:35 +00003
4#include <exception>
Aditya Agarwalfdef47e2007-02-07 03:54:18 +00005#include <Thrift.h>
Marc Slemko525c2022006-07-20 00:29:35 +00006
7namespace facebook { namespace thrift { namespace concurrency {
8
Aditya Agarwalfdef47e2007-02-07 03:54:18 +00009class NoSuchTaskException : public facebook::thrift::TException {};
Marc Slemko525c2022006-07-20 00:29:35 +000010
Aditya Agarwalfdef47e2007-02-07 03:54:18 +000011class UncancellableTaskException : public facebook::thrift::TException {};
Marc Slemko525c2022006-07-20 00:29:35 +000012
Aditya Agarwalfdef47e2007-02-07 03:54:18 +000013class InvalidArgumentException : public facebook::thrift::TException {};
Marc Slemko525c2022006-07-20 00:29:35 +000014
Aditya Agarwalfdef47e2007-02-07 03:54:18 +000015class IllegalStateException : public facebook::thrift::TException {};
Marc Slemko525c2022006-07-20 00:29:35 +000016
Aditya Agarwalfdef47e2007-02-07 03:54:18 +000017class TimedOutException : public facebook::thrift::TException {};
Marc Slemko525c2022006-07-20 00:29:35 +000018
19}}} // facebook::thrift::concurrency
20
Mark Sleef5f2be42006-09-05 21:05:31 +000021#endif // #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_