Most visited

Recently visited

Added in API level 1

IllegalFormatCodePointException

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

Summary

Public constructors

IllegalFormatCodePointException(int c)

使用 isValidCodePoint(int)定义的指定的非法代码点构造此类的实例。

Public methods

int getCodePoint()

返回 isValidCodePoint(int)定义的非法代码点。

String getMessage()

返回此throwable的详细消息字符串。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IllegalFormatCodePointException

Added in API level 1
IllegalFormatCodePointException (int c)

使用 isValidCodePoint(int)定义的指定的非法代码点构造此类的实例。

Parameters
c int: The illegal Unicode code point

Public methods

getCodePoint

Added in API level 1
int getCodePoint ()

返回 isValidCodePoint(int)定义的非法代码点。

Returns
int The illegal Unicode code point

getMessage

Added in API level 1
String getMessage ()

返回此throwable的详细消息字符串。

Returns
String the detail message string of this Throwable instance (which may be null).

Hooray!