public class IllegalFormatConversionException extends IllegalFormatException
除非另有规定,通过null争论在这个类中的任何方法或构造函数会导致NullPointerException
被。
Constructor and Description |
---|
IllegalFormatConversionException(char c, 类<?> arg)
用不匹配的转换和相应的参数类构造这个类的一个实例。
|
Modifier and Type | Method and Description |
---|---|
类<?> |
getArgumentClass()
返回不匹配的参数的类。
|
char |
getConversion()
返回不适用的转换。
|
String |
getMessage()
返回该错误的详细信息的字符串。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalFormatConversionException(char c, 类<?> arg)
c
-不适用的转换
arg
-不匹配的参数类
public char getConversion()
public 类<?> getArgumentClass()
public String getMessage()
Throwable
getMessage
方法重写,继承类
Throwable
Throwable
实例的详细信息的字符串(可以
null
)。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.