1 /*2 * @(#)UnsupportedFlavorException.java 1.15 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package java.awt.datatransfer;9 10 /**11 * Signals that the requested data is not supported in this flavor.12 * @see Transferable#getTransferData13 *14 * @version 1.15, 12/19/0315 * @author Amy Fowler16 */17 public class UnsupportedFlavorException extends Exception {18 19 /*20 * JDK 1.1 serialVersionUID 21 */22 private static final long serialVersionUID = 5383814944251665601L;23 24 /**25 * Constructs an UnsupportedFlavorException.26 *27 * @param flavor the flavor object which caused the exception. May28 * be <code>null</code>.29 */ 30 public UnsupportedFlavorException(DataFlavor flavor) {31 super((flavor != null) ? flavor.getHumanPresentableName() : null);32 }33 }34