add parser_error model
fixbug: throwing exceptions