public class IllegalFormatCodePointException
extends IllegalFormatException
| java.lang.Object | ||||||
| ↳ | java.lang.Throwable | |||||
| ↳ | java.lang.Exception | |||||
| ↳ | java.lang.RuntimeException | |||||
| ↳ | java.lang.IllegalArgumentException | |||||
| ↳ | java.util.IllegalFormatException | |||||
| ↳ | java.util.IllegalFormatCodePointException | |||||
将具有 isValidCodePoint(int)定义的Unicode代码点无效的字符传递给 Formatter时引发的未检查异常。
除非另有说明,否则将 null参数传递给 此类中的任何方法或构造函数将导致引发 NullPointerException 。
Public constructors |
|
|---|---|
IllegalFormatCodePointException(int c) 使用 |
|
Public methods |
|
|---|---|
int |
getCodePoint() 返回 |
String |
getMessage() 返回此throwable的详细消息字符串。 |
Inherited methods |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
IllegalFormatCodePointException (int c)
使用 isValidCodePoint(int)定义的指定的非法代码点构造此类的实例。
| Parameters | |
|---|---|
c |
int: The illegal Unicode code point |
int getCodePoint ()
返回 isValidCodePoint(int)定义的非法代码点。
| Returns | |
|---|---|
int |
The illegal Unicode code point |
String getMessage ()
返回此throwable的详细消息字符串。
| Returns | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |