- 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
抛出以指示线程不处于所请求操作的适当状态。 见,例如,suspend
种resume
类方法Thread
。- 从以下版本开始:
- 1.0
- 另请参见:
-
Thread.resume()
,Thread.suspend()
, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 IllegalThreadStateException()
构造一个IllegalThreadStateException
,没有详细消息。IllegalThreadStateException(String s)
构造具有指定详细消息的IllegalThreadStateException
。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
IllegalThreadStateException
public IllegalThreadStateException()
构造一个没有详细消息的IllegalThreadStateException
。
-
IllegalThreadStateException
public IllegalThreadStateException(String s)
构造具有指定详细消息的IllegalThreadStateException
。- 参数
-
s
- 详细信息。
-
-