KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > datatransfer > UnsupportedFlavorException


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
8 package java.awt.datatransfer;
9
10 /**
11  * Signals that the requested data is not supported in this flavor.
12  * @see Transferable#getTransferData
13  *
14  * @version 1.15, 12/19/03
15  * @author Amy Fowler
16  */

17 public class UnsupportedFlavorException extends Exception JavaDoc {
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. May
28      * be <code>null</code>.
29      */

30     public UnsupportedFlavorException(DataFlavor JavaDoc flavor) {
31         super((flavor != null) ? flavor.getHumanPresentableName() : null);
32     }
33 }
34
Popular Tags