Package org.jboss.threads
Class StoppedExecutorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.concurrent.RejectedExecutionException
-
- org.jboss.threads.StoppedExecutorException
-
- All Implemented Interfaces:
Serializable
public class StoppedExecutorException extends RejectedExecutionException
Thrown when a task is submitted to an executor which is in the process of, or has completed shutting down.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StoppedExecutorException()Constructs aStoppedExecutorExceptionwith no detail message.StoppedExecutorException(String msg)Constructs aStoppedExecutorExceptionwith the specified detail message.StoppedExecutorException(String msg, Throwable cause)Constructs aStoppedExecutorExceptionwith the specified detail message and cause.StoppedExecutorException(Throwable cause)Constructs aStoppedExecutorExceptionwith the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
StoppedExecutorException
public StoppedExecutorException()
Constructs aStoppedExecutorExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.
-
StoppedExecutorException
public StoppedExecutorException(String msg)
Constructs aStoppedExecutorExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
msg- the detail message
-
StoppedExecutorException
public StoppedExecutorException(Throwable cause)
Constructs aStoppedExecutorExceptionwith the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
StoppedExecutorException
public StoppedExecutorException(String msg, Throwable cause)
Constructs aStoppedExecutorExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
-