public class IllegalFormatCodePointException extends IllegalFormatException
Character.isValidCodePoint(int)被传递给Formatter 。
除非另有说明,否则将null参数传递给此类中的任何方法或构造函数将导致抛出NullPointerException 。
| Constructor and Description |
|---|
IllegalFormatCodePointException(int c)
构造如下定义这个类具有指定非法码点的一个实例
Character.isValidCodePoint(int) 。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCodePoint()
返回由
Character.isValidCodePoint(int)定义的非法代码点。
|
String |
getMessage()
返回此throwable的详细消息字符串。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalFormatCodePointException(int c)
Character.isValidCodePoint(int) 。
c - 非法的Unicode代码点
public int getCodePoint()
Character.isValidCodePoint(int)定义的非法代码点。
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.