Add an option to throw an exception when parsing fails #27