- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalMonitorStateException
-
- All Implemented Interfaces:
-
Serializable
public class IllegalMonitorStateException extends RuntimeException
抛出以表示线程已尝试在对象的监视器上等待或通知其他线程等待对象的监视器,而不拥有指定的监视器。- 从以下版本开始:
- 1.0
- 另请参见:
-
Object.notify(),Object.notifyAll(),Object.wait(),Object.wait(long),Object.wait(long, int), Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 IllegalMonitorStateException()构造一个没有详细消息的IllegalMonitorStateException。IllegalMonitorStateException(String s)构造具有指定详细消息的IllegalMonitorStateException。
-
方法摘要
-
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
-
-
-
-
构造方法详细信息
-
IllegalMonitorStateException
public IllegalMonitorStateException()
构造一个没有详细消息的IllegalMonitorStateException。
-
IllegalMonitorStateException
public IllegalMonitorStateException(String s)
构造具有指定详细消息的IllegalMonitorStateException。- 参数
-
s- 详细信息。
-
-