Add ParserInput constraint to Error instance