java.util
Class FormatFlagsConversionMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.util.IllegalFormatException
                      extended by 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.