Exception: java.util.IllegalFormatConversionException

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.

Version:
@version 1.3, 05/05/04
Since:
@since 1.5

Methods

  • IllegalFormatConversionExceptiontop

    public IllegalFormatConversionException(char c, Class<?> arg)
    Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
    Parameters:
    @param c Inapplicable conversion
    @param arg Class of the mismatched argument
    Google Code Search
    Stack Overflow
  • getArgumentClasstop

    public Class<?> getArgumentClass()
    Returns the class of the mismatched argument.
    Return:
    @return The class of the mismatched argument
    Google Code Search
    Stack Overflow
  • getConversiontop

    public char getConversion()
    Returns the inapplicable conversion.
    Return:
    @return The inapplicable conversion
    Google Code Search
    Stack Overflow
  • getMessagetop

    public String getMessage()
    Returns the detail message string of this throwable.
    Return:
    @return the detail message string of this Throwable instance (which may be null).
    Override hierarchy:
    getMessage from Throwable
    Google Code Search
    Stack Overflow