Build 1.0_r1(from source)

java.util
Class IllegalFormatConversionException

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.IllegalFormatConversionException
All Implemented Interfaces:
Serializable

public class IllegalFormatConversionException
extends IllegalFormatException
implements Serializable

The unchecked exception will be thrown out when the parameter is incompatible with the corresponding format specifier.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
IllegalFormatConversionException(char c, Class<?> arg)
          Constructs an IllegalFormatConversionException with the class of the mismatched conversion and corresponding parameter.
 
Method Summary
 Class<?> getArgumentClass()
          Return the class of the mismatched parameter.
 char getConversion()
          Return the incompatible conversion.
 String getMessage()
          Return the message string of the IllegalFormatConversionException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

IllegalFormatConversionException

public IllegalFormatConversionException(char c,
                                        Class<?> arg)
Constructs an IllegalFormatConversionException with the class of the mismatched conversion and corresponding parameter.

Parameters:
c - The class of the mismatched conversion.
arg - The corresponding parameter.
Method Detail

getArgumentClass

public Class<?> getArgumentClass()
Return the class of the mismatched parameter.

Returns:
The class of the mismatched parameter.

getConversion

public char getConversion()
Return the incompatible conversion.

Returns:
The incompatible conversion.

getMessage

public String getMessage()
Return the message string of the IllegalFormatConversionException.

Overrides:
getMessage in class Throwable
Returns:
The message string of the IllegalFormatConversionException.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature