Package org.jsoup.parser
Class ParseError
java.lang.Object
org.jsoup.parser.ParseError
A Parse Error records an error in the input HTML that occurs in either the tokenisation or the tree building phase.
-
Method Summary
Modifier and TypeMethodDescriptionGet the formatted line:column cursor position where the error occurred.Retrieve the error message.int
Retrieves the offset of the error.toString()
-
Method Details
-
getErrorMessage
Retrieve the error message.- Returns:
- the error message.
-
getPosition
public int getPosition()Retrieves the offset of the error.- Returns:
- error offset within input
-
getCursorPos
Get the formatted line:column cursor position where the error occurred.- Returns:
- line:number cursor position
-
toString
-