jaroslav@1892: /* jaroslav@1892: * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved. jaroslav@1892: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@1892: * jaroslav@1892: * This code is free software; you can redistribute it and/or modify it jaroslav@1892: * under the terms of the GNU General Public License version 2 only, as jaroslav@1892: * published by the Free Software Foundation. Oracle designates this jaroslav@1892: * particular file as subject to the "Classpath" exception as provided jaroslav@1892: * by Oracle in the LICENSE file that accompanied this code. jaroslav@1892: * jaroslav@1892: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@1892: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@1892: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@1892: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@1892: * accompanied this code). jaroslav@1892: * jaroslav@1892: * You should have received a copy of the GNU General Public License version jaroslav@1892: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@1892: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@1892: * jaroslav@1892: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@1892: * or visit www.oracle.com if you need additional information or have any jaroslav@1892: * questions. jaroslav@1892: */ jaroslav@1892: jaroslav@1892: package java.lang; jaroslav@1892: jaroslav@1892: /** jaroslav@1892: * Thrown to indicate that a thread has attempted to wait on an jaroslav@1892: * object's monitor or to notify other threads waiting on an object's jaroslav@1892: * monitor without owning the specified monitor. jaroslav@1892: * jaroslav@1892: * @author unascribed jaroslav@1892: * @see java.lang.Object#notify() jaroslav@1892: * @see java.lang.Object#notifyAll() jaroslav@1892: * @see java.lang.Object#wait() jaroslav@1892: * @see java.lang.Object#wait(long) jaroslav@1892: * @see java.lang.Object#wait(long, int) jaroslav@1892: * @since JDK1.0 jaroslav@1892: */ jaroslav@1892: public jaroslav@1892: class IllegalMonitorStateException extends RuntimeException { jaroslav@1892: private static final long serialVersionUID = 3713306369498869069L; jaroslav@1892: jaroslav@1892: /** jaroslav@1892: * Constructs an IllegalMonitorStateException with no jaroslav@1892: * detail message. jaroslav@1892: */ jaroslav@1892: public IllegalMonitorStateException() { jaroslav@1892: super(); jaroslav@1892: } jaroslav@1892: jaroslav@1892: /** jaroslav@1892: * Constructs an IllegalMonitorStateException with the jaroslav@1892: * specified detail message. jaroslav@1892: * jaroslav@1892: * @param s the detail message. jaroslav@1892: */ jaroslav@1892: public IllegalMonitorStateException(String s) { jaroslav@1892: super(s); jaroslav@1892: } jaroslav@1892: }