java.util
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,
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 |
---|---|
Class<?> |
getArgumentClass()
Returns the type of the mismatched argument.
|
char |
getConversion()
Returns the conversion character.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalFormatConversionException(char c, 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.NullPointerException
- if arg
is null.public char getConversion()
public Class<?> getArgumentClass()