java.util

Class FormatFlagsConversionMismatchException

public class FormatFlagsConversionMismatchException extends IllegalFormatException

Thrown when the flags supplied to the {@link Formatter#format()} method of a {@link Formatter} contains a flag that does not match the conversion character specified for it.

Since: 1.5

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
chargetConversion()
Returns the conversion character which doesn't match the flag.
StringgetFlags()
Returns the mismatching flag.

Constructor Detail

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.

Method Detail

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.