Class ParseError

java.lang.Object
org.jsoup.parser.ParseError

public class ParseError extends Object
A Parse Error records an error in the input HTML that occurs in either the tokenisation or the tree building phase.
  • Field Details

    • pos

      private int pos
    • errorMsg

      private String errorMsg
  • Constructor Details

    • ParseError

      ParseError(int pos, String errorMsg)
    • ParseError

      ParseError(int pos, String errorFormat, Object... args)
  • Method Details

    • getErrorMessage

      public String getErrorMessage()
      Retrieve the error message.
      Returns:
      the error message.
    • getPosition

      public int getPosition()
      Retrieves the offset of the error.
      Returns:
      error offset within input
    • toString

      public String toString()
      Overrides:
      toString in class Object