| // Copyright (c) 2006- Facebook | 
 | // Distributed under the Thrift Software License | 
 | // | 
 | // See accompanying file LICENSE or visit the Thrift site at: | 
 | // http://developers.facebook.com/thrift/ | 
 |  | 
 | #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_ | 
 | #define _THRIFT_CONCURRENCY_EXCEPTION_H_ 1 | 
 |  | 
 | #include <exception> | 
 | #include <Thrift.h> | 
 |  | 
 | namespace facebook { namespace thrift { namespace concurrency { | 
 |  | 
 | class NoSuchTaskException : public facebook::thrift::TException {}; | 
 |  | 
 | class UncancellableTaskException : public facebook::thrift::TException {}; | 
 |  | 
 | class InvalidArgumentException : public facebook::thrift::TException {}; | 
 |  | 
 | class IllegalStateException : public facebook::thrift::TException {}; | 
 |  | 
 | class TimedOutException : public facebook::thrift::TException { | 
 | public: | 
 |   TimedOutException():TException("TimedOutException"){}; | 
 |   TimedOutException(const std::string& message ) : | 
 |     TException(message) {} | 
 | }; | 
 |  | 
 | class TooManyPendingTasksException : public facebook::thrift::TException { | 
 | public: | 
 |   TooManyPendingTasksException():TException("TooManyPendingTasksException"){}; | 
 |   TooManyPendingTasksException(const std::string& message ) : | 
 |     TException(message) {} | 
 | }; | 
 |  | 
 | class SystemResourceException : public facebook::thrift::TException { | 
 | public: | 
 |     SystemResourceException() {} | 
 |  | 
 |     SystemResourceException(const std::string& message) : | 
 |         TException(message) {} | 
 | }; | 
 |  | 
 | }}} // facebook::thrift::concurrency | 
 |  | 
 | #endif // #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_ |