Stay organized with collections
Save and categorize content based on your preferences.
open class IllegalFormatCodePointException : IllegalFormatException
Unchecked exception thrown when a character with an invalid Unicode code point as defined by Character.isValidCodePoint
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.
Summary
Public constructors |
Constructs an instance of this class with the specified illegal code point as defined by Character.isValidCodePoint .
|
Public constructors
IllegalFormatCodePointException(c: Int)
Constructs an instance of this class with the specified illegal code point as defined by Character.isValidCodePoint
.
Parameters |
c |
Int: The illegal Unicode code point |
Public methods
Properties
message
open val message: String?
Return |
String? |
the detail message string of this Throwable instance (which may be null ). |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# IllegalFormatCodePointException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIllegalFormatCodePointException\n===============================\n\n```\nopen class IllegalFormatCodePointException : IllegalFormatException\n```\n\n|---|---|---|---|---|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||||\n| | ↳ | [java.lang.Exception](../lang/Exception.html#) |||||\n| | | ↳ | [java.lang.RuntimeException](../lang/RuntimeException.html#) ||||\n| | | | ↳ | [java.lang.IllegalArgumentException](../lang/IllegalArgumentException.html#) |||\n| | | | | ↳ | [java.util.IllegalFormatException](/reference/kotlin/java/util/IllegalFormatException) ||\n| | | | | | ↳ | [java.util.IllegalFormatCodePointException](#) |\n\nUnchecked exception thrown when a character with an invalid Unicode code point as defined by [Character.isValidCodePoint](../lang/Character.html#isValidCodePoint(kotlin.Int)) is passed to the [Formatter](/reference/kotlin/java/util/Formatter).\n\nUnless otherwise specified, passing a `null` argument to any method or constructor in this class will cause a [NullPointerException](../lang/NullPointerException.html#) to be thrown.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [IllegalFormatCodePointException](#IllegalFormatCodePointException(kotlin.Int))`(`c:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs an instance of this class with the specified illegal code point as defined by [Character.isValidCodePoint](../lang/Character.html#isValidCodePoint(kotlin.Int)). |\n\n| Public methods ||\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getCodePoint](#getCodePoint())`()` Returns the illegal code point as defined by [java.lang.Character#isValidCodePoint](../lang/Character.html#isValidCodePoint(kotlin.Int)). |\n\n| Properties ||\n|----------------------------------------------------------------------------------------|------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](#message:kotlin.String) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### IllegalFormatCodePointException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nIllegalFormatCodePointException(c: Int)\n```\n\nConstructs an instance of this class with the specified illegal code point as defined by [Character.isValidCodePoint](../lang/Character.html#isValidCodePoint(kotlin.Int)).\n\n| Parameters ||\n|-----|------------------------------------------------------------------------------------------------------------|\n| `c` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The illegal Unicode code point |\n\nPublic methods\n--------------\n\n### getCodePoint\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getCodePoint(): Int\n```\n\nReturns the illegal code point as defined by [java.lang.Character#isValidCodePoint](../lang/Character.html#isValidCodePoint(kotlin.Int)).\n\n| Return ||\n|----------------------------------------------------------------------------|--------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The illegal Unicode code point |\n\nProperties\n----------\n\n### message\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val message: String?\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | the detail message string of this `Throwable` instance (which may be `null`). |"]]