Class ParseError


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

      Fields 
      Modifier and Type Field Description
      private java.lang.String errorMsg  
      private int pos  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseError​(int pos, java.lang.String errorMsg)  
      ParseError​(int pos, java.lang.String errorFormat, java.lang.Object... args)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorMessage()
      Retrieve the error message.
      int getPosition()
      Retrieves the offset of the error.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • pos

        private int pos
      • errorMsg

        private java.lang.String errorMsg
    • Constructor Detail

      • ParseError

        ParseError​(int pos,
                   java.lang.String errorMsg)
      • ParseError

        ParseError​(int pos,
                   java.lang.String errorFormat,
                   java.lang.Object... args)
    • Method Detail

      • getErrorMessage

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object