Added methods that are called when a parsing error occurs