public class TaskRejectedException extends RejectedExecutionException
TaskExecutor
rejects to accept
a given task for execution.TaskExecutor.execute(Runnable)
,
TaskTimeoutException
,
Serialized FormConstructor and Description |
---|
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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