public class TaskRejectedException extends RejectedExecutionException
TaskExecutor rejects to accept
a given task for execution.TaskExecutor.execute(Runnable),
TaskTimeoutException,
序列化表格| 构造器和说明 |
|---|
TaskRejectedException(String msg)
Create a new
TaskRejectedException
with the specified detail message and no root cause. |
TaskRejectedException(String msg,
Throwable cause)
Create a new
TaskRejectedException
with the specified detail message and the given root cause. |
public TaskRejectedException(String msg)
TaskRejectedException
with the specified detail message and no root cause.msg - the detail messagepublic TaskRejectedException(String msg, Throwable cause)
TaskRejectedException
with the specified detail message and the given root cause.msg - the detail messagecause - the root cause (usually from using an underlying
API such as the java.util.concurrent package)RejectedExecutionException