public class MalformedInputException extends CharacterCodingException
MalformedInputException is thrown when a malformed input is
encountered, for example if a byte sequence is illegal for the given charset.| Constructor and Description |
|---|
MalformedInputException(int length)
Constructs a new
MalformedInputException. |
| Modifier and Type | Method and Description |
|---|---|
int |
getInputLength()
Gets the length of the malformed input.
|
String |
getMessage()
Returns the detail message which was provided when this
Throwable was created. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MalformedInputException(int length)
MalformedInputException.length - the length of the malformed input.public int getInputLength()
public String getMessage()
ThrowableThrowable was created. Returns null if no message was
provided at creation time.getMessage in class Throwable