Runs when a request fails (HTTP error or network error). To transform the error, throw a new one — that replaces what the caller receives. Returning normally lets the original error continue to propagate.
throw
Runs when a request fails (HTTP error or network error). To transform the error,
throwa new one — that replaces what the caller receives. Returning normally lets the original error continue to propagate.