Package java.lang
Class IllegalThreadStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- java.lang.IllegalThreadStateException
-
- All Implemented Interfaces:
Serializable
public class IllegalThreadStateException extends IllegalArgumentException
Thrown when an operation is attempted which is not possible given the state that the executing thread is in.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalThreadStateException()Constructs a newIllegalThreadStateExceptionthat includes the current stack trace.IllegalThreadStateException(String detailMessage)Constructs a newIllegalThreadStateExceptionwith the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalThreadStateException
public IllegalThreadStateException()
Constructs a newIllegalThreadStateExceptionthat includes the current stack trace.
-
IllegalThreadStateException
public IllegalThreadStateException(String detailMessage)
Constructs a newIllegalThreadStateExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
-