package org.jsoup.parser;

/**
 * A Parse Error records an error in the input HTML that occurs in either the tokenisation or the tree building phase.
 */
class ParseError {
    private int pos;
    private String errorMsg;

    ParseError(int pos, String errorMsg) {
        this.pos = pos;
        this.errorMsg = errorMsg;
    }

    ParseError(int pos, String errorFormat, Object... args) {
        this.errorMsg = String.format(errorFormat, args);
        this.pos = pos;
    }

    public String getErrorMessage() {
        return errorMsg;
    }

    public int getPosition() {
        return pos;
    }

    @Override
    public String toString() {
        return pos + ": " + errorMsg;
    }
}

@@ -147,16 +147,23 @@
 se.%0A */%0A
+public 
 class Pa
@@ -491,73 +491,257 @@
     
-public String getErrorMessage() %7B%0A        return errorMsg;%0A    %7D%0A
+/**%0A     * Retrieve the error message.%0A     * @return the error message.%0A     */%0A    public String getErrorMessage() %7B%0A        return errorMsg;%0A    %7D%0A%0A    /**%0A     * Retrieves the offset of the error.%0A     * @return error offset within input%0A     */
 %0A   

Make ParseError public.