| 243 | } |
| 244 | |
| 245 | bool IsThreadPoolError() const { |
| 246 | return msg_ != NULL |
| 247 | && (msg_->error() == TErrorCode::THREAD_POOL_SUBMIT_FAILED || |
| 248 | msg_->error() == TErrorCode::THREAD_POOL_TASK_TIMED_OUT); |
| 249 | } |
| 250 | |
| 251 | /// Returns the error message associated with a non-successful status. |
| 252 | const ErrorMsg& msg() const { |