ignored_errors and error_handler have been for a long time being the only option applied to LHC requests which were not following the general, verb-kind-a wording that we use for all the other options and methods, like .get, cache:, retry:, followlocation``auth etc.
This PR renames the ignored_errors: option to ignore: and the error_handler option to rescue.
I tried to use handle instead of rescue but handle seems to be a ruby internal that we cannot use.
Migration Guide
rename all ignored_errors to ignore in your entire project
rename all error_handler to rescue in your entire project
ignored_errors
anderror_handler
have been for a long time being the only option applied to LHC requests which were not following the general, verb-kind-a wording that we use for all the other options and methods, like.get
,cache:
,retry:
,followlocation``auth
etc.This PR renames the
ignored_errors:
option toignore:
and theerror_handler
option torescue
.I tried to use
handle
instead ofrescue
buthandle
seems to be a ruby internal that we cannot use.Migration Guide
ignored_errors
toignore
in your entire projecterror_handler
torescue
in your entire project