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