Raise error callback instead of throwing an exception when parsing.