1. /*
  2. * @(#)IllegalMonitorStateException.java 1.9 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.lang;
  11. /**
  12. * Thrown to indicate that a thread has attempted to wait on an
  13. * object's monitor or to notify other threads waiting on an object's
  14. * monitor without owning the specified monitor.
  15. *
  16. * @author unascribed
  17. * @version 1.9, 02/02/00
  18. * @see java.lang.Object#notify()
  19. * @see java.lang.Object#notifyAll()
  20. * @see java.lang.Object#wait()
  21. * @see java.lang.Object#wait(long)
  22. * @see java.lang.Object#wait(long, int)
  23. * @since JDK1.0
  24. */
  25. public
  26. class IllegalMonitorStateException extends RuntimeException {
  27. /**
  28. * Constructs an <code>IllegalMonitorStateException</code> with no
  29. * detail message.
  30. */
  31. public IllegalMonitorStateException() {
  32. super();
  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. }