1. /*
  2. * @(#)TimeoutException.java 1.3 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.util.concurrent;
  8. /**
  9. * Exception thrown when a blocking operation times out. Blocking
  10. * operations for which a timeout is specified need a means to
  11. * indicate that the timeout has occurred. For many such operations it
  12. * is possible to return a value that indicates timeout; when that is
  13. * not possible or desirable then <tt>TimeoutException</tt> should be
  14. * declared and thrown.
  15. *
  16. * @since 1.5
  17. * @author Doug Lea
  18. */
  19. public class TimeoutException extends Exception {
  20. private static final long serialVersionUID = 1900926677490660714L;
  21. /**
  22. * Constructs a <tt>TimeoutException</tt> with no specified detail
  23. * message.
  24. */
  25. public TimeoutException() {}
  26. /**
  27. * Constructs a <tt>TimeoutException</tt> with the specified detail
  28. * message.
  29. *
  30. * @param message the detail message
  31. */
  32. public TimeoutException(String message) {
  33. super(message);
  34. }
  35. }