Package org.jsoup.parser
Class ParseError
- java.lang.Object
-
- org.jsoup.parser.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.
-
-
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()
-
-
-
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 classjava.lang.Object
-
-