Name
IllegalFormatConversionException
Synopsis
An IllegalFormatException
of this type is thrown by a
Formatter
when the type of the format(
)
or printf( )
argument does not match
the type required by the corresponding conversion specifier in the
format string.
Figure 16-29. java.util.IllegalFormatConversionException
public class IllegalFormatConversionException extends IllegalFormatException { // Public Constructors public IllegalFormatConversionException(char c, Class<?> arg); // Public Instance Methods public Class<?> getArgumentClass( ); public char getConversion( ); // Public Methods Overriding Throwable public String getMessage( ); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.