Stay organized with collections
Save and categorize content based on your preferences.
UnsupportedCharsetException
open class UnsupportedCharsetException : IllegalArgumentException
Unchecked exception thrown when no support is available for a requested charset.
Summary
Public constructors |
Constructs an instance of this class.
|
Public methods |
open String! |
Retrieves the name of the unsupported charset.
|
Public constructors
UnsupportedCharsetException
UnsupportedCharsetException(charsetName: String!)
Constructs an instance of this class.
Parameters |
charsetName |
String!: The name of the unsupported charset |
Public methods
getCharsetName
open fun getCharsetName(): String!
Retrieves the name of the unsupported charset.
Return |
String! |
The name of the unsupported charset |
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,["# UnsupportedCharsetException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUnsupportedCharsetException\n===========================\n\n```\nopen class UnsupportedCharsetException : IllegalArgumentException\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.nio.charset.UnsupportedCharsetException](#) |\n\nUnchecked exception thrown when no support is available for a requested charset.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UnsupportedCharsetException](#UnsupportedCharsetException(kotlin.String))`(`charsetName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an instance of this class. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getCharsetName](#getCharsetName())`()` Retrieves the name of the unsupported charset. |\n\nPublic constructors\n-------------------\n\n### UnsupportedCharsetException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnsupportedCharsetException(charsetName: String!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------------------------------------|\n| `charsetName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The name of the unsupported charset |\n\nPublic methods\n--------------\n\n### getCharsetName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getCharsetName(): String!\n```\n\nRetrieves the name of the unsupported charset.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The name of the unsupported charset |"]]