Package java.nio.charset
Class UnmappableCharacterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.nio.charset.CharacterCodingException
java.nio.charset.UnmappableCharacterException
- All Implemented Interfaces:
Serializable
public class UnmappableCharacterException extends CharacterCodingException
An
UnmappableCharacterException is thrown when an unmappable
character for the given charset is encountered.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnmappableCharacterException(int length)Constructs a newUnmappableCharacterException. -
Method Summary
Modifier and Type Method Description intgetInputLength()Returns the length of the unmappable character.StringgetMessage()Returns the detail message which was provided when thisThrowablewas created.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnmappableCharacterException
public UnmappableCharacterException(int length)Constructs a newUnmappableCharacterException.- Parameters:
length- the length of the unmappable character.
-
-
Method Details
-
getInputLength
public int getInputLength()Returns the length of the unmappable character. -
getMessage
Description copied from class:ThrowableReturns the detail message which was provided when thisThrowablewas created. Returnsnullif no message was provided at creation time.- Overrides:
getMessagein classThrowable
-