package configparser.exceptions;

public class InvalidLine extends ParsingError
{
    private final String line;

    public InvalidLine(int lineNo, String line)
    {
        super(lineNo);
        this.line = line;
    }

    public String getLine()
    {
        return line;
    }

    @Override
    public String getMessage()
    {
        return getLine();
    }
}

@@ -342,22 +342,138 @@
     
-return getLine
+StringBuilder sb = new StringBuilder();%0A%0A        sb.append(%22Invalid: %22);%0A        sb.append(getLine());%0A%0A        return sb.toString
 ();%0A

Change InvalidLine to prefix a reason to the line