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
AnUnmappableCharacterExceptionis 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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
getInputLength
public int getInputLength()
Returns the length of the unmappable character.
-
getMessage
public String 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
-
-