1 /*2 * @(#)IllegalMonitorStateException.java 1.12 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package java.lang;9 10 /**11 * Thrown to indicate that a thread has attempted to wait on an 12 * object's monitor or to notify other threads waiting on an object's13 * monitor without owning the specified monitor. 14 *15 * @author unascribed16 * @version 1.12, 12/19/0317 * @see java.lang.Object#notify()18 * @see java.lang.Object#notifyAll()19 * @see java.lang.Object#wait() 20 * @see java.lang.Object#wait(long) 21 * @see java.lang.Object#wait(long, int) 22 * @since JDK1.023 */24 public25 class IllegalMonitorStateException extends RuntimeException {26 /**27 * Constructs an <code>IllegalMonitorStateException</code> with no 28 * detail message. 29 */30 public IllegalMonitorStateException() {31 super();32 }33 34 /**35 * Constructs an <code>IllegalMonitorStateException</code> with the 36 * specified detail message. 37 *38 * @param s the detail message.39 */40 public IllegalMonitorStateException(String s) {41 super(s);42 }43 }44