Add an exception when parsing fails.