java.util
Class IllegalFormatCodePointException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byjava.util.IllegalFormatException
                      extended byjava.util.IllegalFormatCodePointException
All Implemented Interfaces:
Serializable

public class IllegalFormatCodePointException
extends IllegalFormatException
implements Serializable

The unchecked exception will be thrown out if an invalid Unicode code point, which is Character.isValidCodePoint(int), is passed as a parameter to Formatter.

See Also:
Serialized Form

Constructor Summary
IllegalFormatCodePointException(int c)
          Constructs an IllegalFormatCodePointException which is specified by the invalid Unicode code point.
 
Method Summary
 int getCodePoint()
          Return the invalid Unicode code point.
 java.lang.String getMessage()
          Return the message string of the IllegalFormatCodePointException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalFormatCodePointException

public IllegalFormatCodePointException(int c)
Constructs an IllegalFormatCodePointException which is specified by the invalid Unicode code point.

Parameters:
c - The invalid Unicode code point.
Method Detail

getCodePoint

public int getCodePoint()
Return the invalid Unicode code point.

Returns:
The invalid Unicode code point.

getMessage

public java.lang.String getMessage()
Return the message string of the IllegalFormatCodePointException.

Overrides:
getMessage in class Throwable
Returns:
the detail message string of this Throwable instance (which may be null).