RejectedExecutionException | java.util.concurrent |
Java 5.0 | serializable 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.
public class RejectedExecutionException extends RuntimeException { // Public Constructors public RejectedExecutionException ( ); public RejectedExecutionException (Throwable cause ); public RejectedExecutionException (String message ); public RejectedExecutionException (String message , Throwable cause ); }
|