Skip to contents

Handle and parse errors from the API calls

Usage

api_error_catch(bodylist, call = rlang::caller_env(), .errorhandling = "stop")

Arguments

bodylist

list returned by API

call

see rlang::abort(); passes calling environment for clearer messages

.errorhandling

as in foreach::foreach()- passed in here to handle simply aborting vs doing something with the error and continuing

Value

depends on presence of errors and value of .errorhandling