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