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