Added in API level 1

UnsupportedCharsetException

open class UnsupportedCharsetException : IllegalArgumentException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.lang.IllegalArgumentException
   ↳ java.nio.charset.UnsupportedCharsetException

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

Added in API level 1
UnsupportedCharsetException(charsetName: String!)

Constructs an instance of this class.

Parameters
charsetName String!: The name of the unsupported charset

Public methods

getCharsetName

Added in API level 1
open fun getCharsetName(): String!

Retrieves the name of the unsupported charset.

Return
String! The name of the unsupported charset