public class

TaskRejectedException

extends RejectedExecutionException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.concurrent.RejectedExecutionException
           ↳ org.springframework.core.task.TaskRejectedException
Known Direct Subclasses

Class Overview

Exception thrown when a TaskExecutor rejects to accept a given task for execution.

Summary

Public Constructors
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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public TaskRejectedException (String msg)

Also: SpringCore

Create a new TaskRejectedException with the specified detail message and no root cause.

Parameters
msg the detail message

public TaskRejectedException (String msg, Throwable cause)

Also: SpringCore

Create a new TaskRejectedException with the specified detail message and the given root cause.

Parameters
msg the detail message
cause the root cause (usually from using an underlying API such as the java.util.concurrent package)