1 |
/* UnsupportedFlavorException.java -- Data flavor is not valid. |
/* UnsupportedFlavorException.java -- ata flavor is not valid |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
39 |
package java.awt.datatransfer; |
package java.awt.datatransfer; |
40 |
|
|
41 |
/** |
/** |
42 |
* The data flavor requested is not supported for the transfer data. |
* The data flavor requested is not supported for the transfer data. |
43 |
* |
* |
44 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn <arenn@urbanophile.com> |
45 |
*/ |
* @see Transferable#getTransferData(DataFlavor) |
46 |
public class UnsupportedFlavorException extends Exception |
* @status updated to 1.4 |
47 |
|
*/ |
48 |
|
public class UnsupportedFlavorException extends Exception |
49 |
{ |
{ |
50 |
|
/** |
51 |
/** |
* Compatible with JDK 1.1+. |
52 |
* Initializes a new instance of <code>UnsupportedDataFlavor</code> |
*/ |
53 |
* for the specified data flavor. |
private static final long serialVersionUID = 5383814944251665601L; |
54 |
* |
|
55 |
* @param flavor The data flavor that is not supported. |
/** |
56 |
*/ |
* Initializes a new instance of <code>UnsupportedDataFlavor</code> |
57 |
public |
* for the specified data flavor. |
58 |
UnsupportedFlavorException(DataFlavor flavor) |
* |
59 |
{ |
* @param flavor the data flavor that is not supported |
60 |
super(flavor.getHumanPresentableName()); |
*/ |
61 |
} |
public UnsupportedFlavorException(DataFlavor flavor) |
62 |
|
{ |
63 |
|
super(flavor == null ? null : flavor.getHumanPresentableName()); |
64 |
|
} |
65 |
} // class UnsupportedFlavorException |
} // class UnsupportedFlavorException |
|
|
|