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()
返回此throwable的详细消息字符串。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalFormatConversionException(char c,
类<?> arg)
c - 不适用的转换
arg - 不匹配参数的类
public char getConversion()
public 类<?> getArgumentClass()
public String getMessage()
Throwable复制
getMessage在类别
Throwable
Throwable instance (which may be
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.