Class UnsupportedFlavorException in java

digitization, transformation, binary

Class UnsupportedFlavorException in java

An exception of this type signals that a Transferable object could not provide data in the requested format.This exception is thrown from Transferable.getTransferData(DataFlavor) to indicate that the DataFlavor requested is not available.

The structure of the class UnsupportedFlavorException is given by

public class java.awt.datatransfer.UnsupportedFlavorException extends java.lang.Exception{
// Public Constructor
public UnsupportedFlavorException(DataFlavor flavor);
}

The details of the class structure are given as follows:

Ads code goes here
public UnsupportedFlavorException(DataFlavor flavor);

public UnsupportedFlavorException(DataFlavor flavor) constructs UnsupportedFlavorException with the given data flavor.

Parameter
flavor
The flavor that caused the exception.

Share and Enjoy !

READ  Class MalformedURLException in Java

Leave a Comment

Your email address will not be published. Required fields are marked *