public class java.util
IllegalFormatConversionException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException > IllegalArgumentException > IllegalFormatException

Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.

Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown.
version1.4, 11/17/05
since1.5


Constructors
public IllegalFormatConversionException(char c, Class arg)
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
cInapplicable conversion
argClass of the mismatched argument

Properties
public Class getArgumentClass()
Returns the class of the mismatched argument.
returnThe class of the mismatched argument
public char getConversion()
Returns the inapplicable conversion.
returnThe inapplicable conversion
public String getMessage()