1. /*
  2. * @(#)CancellationException.java 1.4 04/01/12
  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 indicating that the result of a value-producing task,
  10. * such as a {@link FutureTask}, cannot be retrieved because the task
  11. * was cancelled.
  12. *
  13. * @since 1.5
  14. * @author Doug Lea
  15. */
  16. public class CancellationException extends IllegalStateException {
  17. private static final long serialVersionUID = -9202173006928992231L;
  18. /**
  19. * Constructs a <tt>CancellationException</tt> with no detail message.
  20. */
  21. public CancellationException() {}
  22. /**
  23. * Constructs a <tt>CancellationException</tt> with the specified detail
  24. * message.
  25. *
  26. * @param message the detail message
  27. */
  28. public CancellationException(String message) {
  29. super(message);
  30. }
  31. }