1. /*
  2. * @(#)UnsupportedFlavorException.java 1.15 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.awt.datatransfer;
  8. /**
  9. * Signals that the requested data is not supported in this flavor.
  10. * @see Transferable#getTransferData
  11. *
  12. * @version 1.15, 12/19/03
  13. * @author Amy Fowler
  14. */
  15. public class UnsupportedFlavorException extends Exception {
  16. /*
  17. * JDK 1.1 serialVersionUID
  18. */
  19. private static final long serialVersionUID = 5383814944251665601L;
  20. /**
  21. * Constructs an UnsupportedFlavorException.
  22. *
  23. * @param flavor the flavor object which caused the exception. May
  24. * be <code>null</code>.
  25. */
  26. public UnsupportedFlavorException(DataFlavor flavor) {
  27. super((flavor != null) ? flavor.getHumanPresentableName() : null);
  28. }
  29. }