Class MalformedInputException

All Implemented Interfaces:
Serializable

public class MalformedInputException
extends CharacterCodingException
A MalformedInputException is thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset.
See Also:
Serialized Form
  • Constructor Details

    • MalformedInputException

      public MalformedInputException​(int length)
      Constructs a new MalformedInputException.
      Parameters:
      length - the length of the malformed input.
  • Method Details

    • getInputLength

      public int getInputLength()
      Gets the length of the malformed input.
      Returns:
      the length of the malformed input.
    • getMessage

      public String getMessage()
      Description copied from class: Throwable
      Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.
      Overrides:
      getMessage in class Throwable