Stay organized with collections
Save and categorize content based on your preferences.
UnmappableCharacterException
open class UnmappableCharacterException : CharacterCodingException
Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.
Summary
Public constructors |
Constructs an UnmappableCharacterException with the given length.
|
Public methods |
open Int |
Returns the length of the input.
|
Properties |
open String? |
Returns the message.
|
Public constructors
UnmappableCharacterException
UnmappableCharacterException(inputLength: Int)
Constructs an UnmappableCharacterException
with the given length.
Parameters |
inputLength |
Int: the length of the input |
Public methods
open fun getInputLength(): Int
Returns the length of the input.
Return |
Int |
the length of the input |
Properties
message
open val message: String?
Returns the message.
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,["# UnmappableCharacterException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUnmappableCharacterException\n============================\n\n```\nopen class UnmappableCharacterException : CharacterCodingException\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.io.IOException](../../io/IOException.html#) |||\n| | | | ↳ | [java.nio.charset.CharacterCodingException](/reference/kotlin/java/nio/charset/CharacterCodingException) ||\n| | | | | ↳ | [java.nio.charset.UnmappableCharacterException](#) |\n\nChecked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UnmappableCharacterException](#UnmappableCharacterException(kotlin.Int))`(`inputLength:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs an `UnmappableCharacterException` with the given length. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getInputLength](#getInputLength())`()` Returns the length of the input. |\n\n| Properties ||\n|----------------------------------------------------------------------------------------|--------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](#message:kotlin.String) Returns the message. |\n\nPublic constructors\n-------------------\n\n### UnmappableCharacterException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnmappableCharacterException(inputLength: Int)\n```\n\nConstructs an `UnmappableCharacterException` with the given length.\n\n| Parameters ||\n|---------------|-----------------------------------------------------------------------------------------------------|\n| `inputLength` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the length of the input |\n\nPublic methods\n--------------\n\n### getInputLength\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getInputLength(): Int\n```\n\nReturns the length of the input.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the length of the input |\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\nReturns the message.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | the message |"]]