Refactor parsing error exceptions