Class ThreadCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.concurrent.RejectedExecutionException
org.jboss.threads.ThreadCreationException
- All Implemented Interfaces:
Serializable
Thrown when a thread factory refuses to create a thread for a thread pool.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aThreadCreationExceptionwith no detail message.Constructs aThreadCreationExceptionwith the specified detail message.ThreadCreationException(String msg, Throwable cause) Constructs aThreadCreationExceptionwith the specified detail message and cause.ThreadCreationException(Throwable cause) Constructs aThreadCreationExceptionwith the specified cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ThreadCreationException
public ThreadCreationException()Constructs aThreadCreationExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause. -
ThreadCreationException
-
ThreadCreationException
Constructs aThreadCreationExceptionwith 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)
-
ThreadCreationException
Constructs aThreadCreationExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-