Skip to content

Most visited

Recently visited

navigation
Added in API level 1

UnmappableCharacterException

public class UnmappableCharacterException
extends CharacterCodingException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.nio.charset.CharacterCodingException
           ↳ java.nio.charset.UnmappableCharacterException


An UnmappableCharacterException is thrown when an unmappable character for the given charset is encountered.

Summary

Public constructors

UnmappableCharacterException(int length)

Constructs a new UnmappableCharacterException.

Public methods

int getInputLength()

Returns the length of the unmappable character.

String getMessage()

Returns the detail message which was provided when this Throwable was created.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

UnmappableCharacterException

Added in API level 1
UnmappableCharacterException (int length)

Constructs a new UnmappableCharacterException.

Parameters
length int: the length of the unmappable character.

Public methods

getInputLength

Added in API level 1
int getInputLength ()

Returns the length of the unmappable character.

Returns
int

getMessage

Added in API level 1
String getMessage ()

Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.

Returns
String
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.