made ParserError public and gave it a toString