Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 718
نمايش فراداده

IllegalFormatConversionExceptionjava.util

Java 5.0serializable unchecked

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 ( ); }