1. /*
  2. * @(#)IllegalThreadStateException.java 1.18 00/02/02
  3. *
  4. * Copyright 1994-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 is not in an appropriate state
  13. * for the requested operation. See, for example, the
  14. * <code>suspend</code> and <code>resume</code> methods in class
  15. * <code>Thread</code>.
  16. *
  17. * @author unascribed
  18. * @version 1.18, 02/02/00
  19. * @see java.lang.Thread#resume()
  20. * @see java.lang.Thread#suspend()
  21. * @since JDK1.0
  22. */
  23. public class IllegalThreadStateException extends IllegalArgumentException {
  24. /**
  25. * Constructs an <code>IllegalThreadStateException</code> with no
  26. * detail message.
  27. */
  28. public IllegalThreadStateException() {
  29. super();
  30. }
  31. /**
  32. * Constructs an <code>IllegalThreadStateException</code> with the
  33. * specified detail message.
  34. *
  35. * @param s the detail message.
  36. */
  37. public IllegalThreadStateException(String s) {
  38. super(s);
  39. }
  40. }