public class

TaskTimeoutException

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

Class Overview

Exception thrown when a AsyncTaskExecutor rejects to accept a given task for execution because of the specified timeout.

Summary

Public Constructors
TaskTimeoutException(String msg)
Create a new TaskTimeoutException with the specified detail message and no root cause.
TaskTimeoutException(String msg, Throwable cause)
Create a new TaskTimeoutException 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 TaskTimeoutException (String msg)

Also: SpringCore

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

Parameters
msg the detail message

public TaskTimeoutException (String msg, Throwable cause)

Also: SpringCore

Create a new TaskTimeoutException 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)