public class FormatFlagsConversionMismatchException extends IllegalFormatException
Formatter#format()
method of a Formatter contains a flag that does not match
the conversion character specified for it.| Constructor and Description |
|---|
FormatFlagsConversionMismatchException(String f,
char c)
Constructs a new
FormatFlagsConversionMismatchException
which specifies that the flag, f, does
not match its appropriate conversion character, c. |
| Modifier and Type | Method and Description |
|---|---|
char |
getConversion()
Returns the conversion character which doesn't
match the flag.
|
String |
getFlags()
Returns the mismatching flag.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic FormatFlagsConversionMismatchException(String f, char c)
FormatFlagsConversionMismatchException
which specifies that the flag, f, does
not match its appropriate conversion character, c.f - the mismatching flag.c - the conversion character which doesn't match its flag.NullPointerException - if f is null.public char getConversion()