public class IllegalFormatCodePointException extends IllegalFormatException implements Serializable
An {@code IllegalFormatCodePointException} will be thrown if an invalid
Unicode code point (defined by {@link Character#isValidCodePoint(int)}) is
passed as a parameter to a Formatter.
Returns the message string of the IllegalFormatCodePointException.
return
the message string of the IllegalFormatCodePointException.
StringBuilder buffer = new StringBuilder();
buffer.append("Code point is ");
char[] chars = Character.toChars(c);
for (int i = 0; i < chars.length; i++) {
buffer.append(chars[i]);
}
return buffer.toString();