IllegalFormatCodePointException

  • IllegalFormatCodePointException is an unchecked exception thrown when an invalid Unicode code point is passed to the Formatter.

  • It's a subclass of IllegalFormatException and provides methods to retrieve the illegal code point and error message.

  • Passing a null argument to its constructor or methods results in a NullPointerException.

  • The exception is constructed with the invalid code point and inherits methods from Throwable and Object for exception handling and object management.

public class IllegalFormatCodePointException extends IllegalFormatException

Unchecked exception thrown when a character with an invalid Unicode code point as defined by Character.isValidCodePoint(int) is passed to the Formatter.

Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown.

Public Constructor Summary

IllegalFormatCodePointException(int c)
Constructs an instance of this class with the specified illegal code point as defined by Character.isValidCodePoint(int).

Public Method Summary

int
getCodePoint()
Returns the illegal code point as defined by Character.isValidCodePoint(int).
String
getMessage()
Returns the detail message string of this throwable.

Inherited Method Summary

Public Constructors

public IllegalFormatCodePointException (int c)

Constructs an instance of this class with the specified illegal code point as defined by Character.isValidCodePoint(int).

Parameters
c The illegal Unicode code point

Public Methods

public int getCodePoint ()

Returns the illegal code point as defined by Character.isValidCodePoint(int).

Returns
  • The illegal Unicode code point

public String getMessage ()

Returns the detail message string of this throwable.

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