Added in API level 1

MalformedInputException

open class MalformedInputException : CharacterCodingException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.io.IOException
   ↳ java.nio.charset.CharacterCodingException
   ↳ java.nio.charset.MalformedInputException

Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.

Summary

Public constructors

Constructs an MalformedInputException with the given length.

Public methods
open Int

Returns the length of the input.

Properties
open String?

Returns the message.

Public constructors

MalformedInputException

Added in API level 1
MalformedInputException(inputLength: Int)

Constructs an MalformedInputException with the given length.

Parameters
inputLength Int: the length of the input

Public methods

getInputLength

Added in API level 1
open fun getInputLength(): Int

Returns the length of the input.

Return
Int the length of the input

Properties

message

Added in API level 1
open val message: String?

Returns the message.

Return
String? the message