1. /*
  2. * @(#)InterruptedException.java 1.11 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 when a thread is waiting, sleeping, or otherwise paused for
  10. * a long time and another thread interrupts it using the
  11. * <code>interrupt</code> method in class <code>Thread</code>.
  12. *
  13. * @author Frank Yellin
  14. * @version 1.11, 11/29/01
  15. * @see java.lang.Object#wait()
  16. * @see java.lang.Object#wait(long)
  17. * @see java.lang.Object#wait(long, int)
  18. * @see java.lang.Thread#sleep(long)
  19. * @see java.lang.Thread#interrupt()
  20. * @see java.lang.Thread#interrupted()
  21. * @since JDK1.0
  22. */
  23. public
  24. class InterruptedException extends Exception {
  25. /**
  26. * Constructs an <code>InterruptedException</code> with no detail message.
  27. */
  28. public InterruptedException() {
  29. super();
  30. }
  31. /**
  32. * Constructs an <code>InterruptedException</code> with the
  33. * specified detail message.
  34. *
  35. * @param s the detail message.
  36. */
  37. public InterruptedException(String s) {
  38. super(s);
  39. }
  40. }