public class IllegalFormatConversionException extends IllegalFormatException implements Serializable
IllegalFormatConversionException will be thrown when the parameter
is incompatible with the corresponding format specifier.RuntimeException,
Serialized Form| Constructor and Description |
|---|
IllegalFormatConversionException(char c,
Class<?> arg)
Constructs a new
IllegalFormatConversionException with the class
of the mismatched conversion and corresponding parameter. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArgumentClass()
Returns the class of the mismatched parameter.
|
char |
getConversion()
Returns the incompatible conversion.
|
String |
getMessage()
Returns the detail message which was provided when this
Throwable was created. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalFormatConversionException(char c,
Class<?> arg)
IllegalFormatConversionException with the class
of the mismatched conversion and corresponding parameter.c - the class of the mismatched conversion.arg - the corresponding parameter.public Class<?> getArgumentClass()
public char getConversion()
public String getMessage()
ThrowableThrowable was created. Returns null if no message was
provided at creation time.getMessage in class Throwable