APIdia Launch Partner
Top Description Fields Constructors
java.util.concurrent

public Class RejectedExecutionException

extends RuntimeException
Class Inheritance

Exception thrown by an Executor when a task cannot be accepted for execution.
Author
Doug Lea
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
RejectedExecutionException()

Constructs a RejectedExecutionException with no detail message.

public
RejectedExecutionException(String
the detail message
message
)

Constructs a RejectedExecutionException with the specified detail message.

public
RejectedExecutionException(String
the detail message
message
,
Throwable
the cause (which is saved for later retrieval by the getCause() method)
cause
)

Constructs a RejectedExecutionException with the specified detail message and cause.

public
RejectedExecutionException(Throwable
the cause (which is saved for later retrieval by the getCause() method)
cause
)

Constructs a RejectedExecutionException with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

RejectedExecutionExceptionback to summary
public RejectedExecutionException()

Constructs a RejectedExecutionException with no detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

RejectedExecutionExceptionback to summary
public RejectedExecutionException(String message)

Constructs a RejectedExecutionException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters
message:String

the detail message

RejectedExecutionExceptionback to summary
public RejectedExecutionException(String message, Throwable cause)

Constructs a RejectedExecutionException with the specified detail message and cause.

Parameters
message:String

the detail message

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method)

RejectedExecutionExceptionback to summary
public RejectedExecutionException(Throwable cause)

Constructs a RejectedExecutionException with the specified cause. The detail message is set to (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters
cause:Throwable

the cause (which is saved for later retrieval by the getCause() method)