IllegalFormatConversionException

public class 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.

Public Constructor Summary

IllegalFormatConversionException(char c, Class<?> arg)
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.

Public Method Summary

Class<?>
getArgumentClass()
Returns the class of the mismatched argument.
char
getConversion()
Returns the inapplicable conversion.
String
getMessage()
Returns the detail message string of this throwable.

Inherited Method Summary

Public Constructors

public IllegalFormatConversionException (char c, Class<?> arg)

Constructs an instance of this class with the mismatched conversion and the corresponding argument class.

Parameters
c Inapplicable conversion
arg Class of the mismatched argument

Public Methods

public Class<?> getArgumentClass ()

Returns the class of the mismatched argument.

Returns
  • The class of the mismatched argument

public char getConversion ()

Returns the inapplicable conversion.

Returns
  • The inapplicable conversion

public String getMessage ()

Returns the detail message string of this throwable.

Returns
  • the detail message string of this Throwable instance (which may be null).