Team LiB
Previous Section Next Section

RejectedExecutionExceptionjava.util.concurrent

Java 5.0serializable unchecked

An exception of this type is thrown by an Executor when it cannot accept a task for execution. When a ThreadPoolExecutor cannot accept a task, it attempts to invoke a RejectedExecutionHandler. THReadPoolExecutor defines several nested implementations of that handler interface that can handle the rejected task without throwing an exception of this type.

Figure 16-88. java.util.concurrent.RejectedExecutionException


public class RejectedExecutionException extends RuntimeException {
// Public Constructors
     public RejectedExecutionException( );  
     public RejectedExecutionException(Throwable cause);  
     public RejectedExecutionException(String message);  
     public RejectedExecutionException(String message, Throwable cause);  
}

    Team LiB
    Previous Section Next Section