Factored away ParseError method.