parser: implement ParserException