Applies the source parser, modifying the failure reason to the given message if it fails Softly. Useful for providing the user with a more meaningful error message than was is provided by default.
The new message.
Applies the source parser. If it fails, calls onFailure with the failure info and uses the returned string as the new failure reason.
onFailure
A function that takes the failure info and returns the new reason.
Applies the source parser, modifying the failure reason to the given message if it fails Softly. Useful for providing the user with a more meaningful error message than was is provided by default.