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