Exception: java.util.IllegalFormatConversionException
- public exception IllegalFormatConversionException
- extends 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.
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IllegalArgumentException
- java.util.IllegalFormatException
- java.util.IllegalFormatConversionException
Methods
-
IllegalFormatConversionExceptiontop
public IllegalFormatConversionException(char c, Class<?> arg)Constructs an instance of this class with the mismatched conversion and the corresponding argument class. -
getArgumentClasstop
public Class<?> getArgumentClass()Returns the class of the mismatched argument. -
getConversiontop
public char getConversion()Returns the inapplicable conversion. -
getMessagetop
public String getMessage()Returns the detail message string of this throwable.- Override hierarchy:
- getMessage from Throwable
