public class IllegalFormatConversionException extends IllegalFormatException implements Serializable
IllegalFormatConversionException
will be thrown when the parameter
is incompatible with the corresponding format specifier.RuntimeException
,
Serialized FormConstructor 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 extra information message which was provided when this
Throwable was created. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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()
Throwable
Throwable
was created. Returns null
if no message was
provided at creation time.getMessage
in class Throwable
Throwable
's detail message.