java.util
Class FormatFlagsConversionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.FormatFlagsConversionMismatchException
- All Implemented Interfaces:
- Serializable
public class FormatFlagsConversionMismatchException
- extends IllegalFormatException
Thrown when the flags supplied to the Formatter#format()
method of a Formatter
contains a flag that does not match
the conversion character specified for it.
- Since:
- 1.5
- See Also:
- Serialized Form
Constructor Summary |
FormatFlagsConversionMismatchException(String f,
char c)
Constructs a new FormatFlagsConversionMismatchException
which specifies that the flag, f , does
not match its appropriate conversion character, c . |
Method Summary |
char |
getConversion()
Returns the conversion character which doesn't
match the flag. |
String |
getFlags()
Returns the mismatching flag. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
FormatFlagsConversionMismatchException
public FormatFlagsConversionMismatchException(String f,
char c)
- Constructs a new
FormatFlagsConversionMismatchException
which specifies that the flag, f
, does
not match its appropriate conversion character, c
.
- Parameters:
f
- the mismatching flag.c
- the conversion character which doesn't match its flag.
- Throws:
NullPointerException
- if f
is null.
getConversion
public char getConversion()
- Returns the conversion character which doesn't
match the flag.
- Returns:
- the conversion character.
getFlags
public String getFlags()
- Returns the mismatching flag.
- Returns:
- the mismatching flag.