public class IllegalFormatConversionException extends IllegalFormatException
Formatter#format() method of a Formatter
does not match the conversion character specified for it.| Constructor and Description |
|---|
IllegalFormatConversionException(char c,
java.lang.Class<?> arg)
Constructs a new
IllegalFormatConversionException
which specifies that the argument of type arg does
not match the conversion character, c. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getArgumentClass()
Returns the type of the mismatched argument.
|
char |
getConversion()
Returns the conversion character.
|
public IllegalFormatConversionException(char c, java.lang.Class<?> arg)
IllegalFormatConversionException
which specifies that the argument of type arg does
not match the conversion character, c.c - the conversion character.arg - the type which doesn't match the conversion character.java.lang.NullPointerException - if arg is null.public char getConversion()
public java.lang.Class<?> getArgumentClass()