java.util.IllegalFormatConversionException
The unchecked exception will be thrown out when the parameter is incompatible
with the corresponding format specifier.
Summary
Public Constructors
Public Methods
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
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.
|
Public Methods
public
Class<?>
getArgumentClass()
Return the class of the mismatched parameter.
Returns
- The class of the mismatched parameter.
public
char
getConversion()
Return the incompatible conversion.
Returns
- The incompatible conversion.
public
String
getMessage()
Return the message string of the IllegalFormatConversionException.
Returns
- The message string of the IllegalFormatConversionException.