File indexing completed on 2026-04-17 08:35:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef _THRIFT_CONCURRENCY_EXCEPTION_H_
0021 #define _THRIFT_CONCURRENCY_EXCEPTION_H_ 1
0022
0023 #include <exception>
0024 #include <thrift/Thrift.h>
0025
0026 namespace apache {
0027 namespace thrift {
0028 namespace concurrency {
0029
0030 class NoSuchTaskException : public apache::thrift::TException {};
0031
0032 class UncancellableTaskException : public apache::thrift::TException {};
0033
0034 class InvalidArgumentException : public apache::thrift::TException {};
0035
0036 class IllegalStateException : public apache::thrift::TException {
0037 public:
0038 IllegalStateException() = default;
0039 IllegalStateException(const std::string& message) : TException(message) {}
0040 };
0041
0042 class TimedOutException : public apache::thrift::TException {
0043 public:
0044 TimedOutException() : TException("TimedOutException"){};
0045 TimedOutException(const std::string& message) : TException(message) {}
0046 };
0047
0048 class TooManyPendingTasksException : public apache::thrift::TException {
0049 public:
0050 TooManyPendingTasksException() : TException("TooManyPendingTasksException"){};
0051 TooManyPendingTasksException(const std::string& message) : TException(message) {}
0052 };
0053
0054 class SystemResourceException : public apache::thrift::TException {
0055 public:
0056 SystemResourceException() = default;
0057
0058 SystemResourceException(const std::string& message) : TException(message) {}
0059 };
0060 }
0061 }
0062 }
0063
0064 #endif