| .report_api_error | R Documentation |
Internal helper that standardizes the message every WNBA / ESPN / NCAA
wrapper emits inside its tryCatch(error = ...) block. Always emits, in
order:
.report_api_error(e, hint = NULL, args = list())
e |
error condition (the |
hint |
character. A friendly message with optional |
args |
optional named list of caller arguments to dump (typically
|
A timestamped friendly hint (brace-interpolated against the caller env),
A dump of the function call's arguments,
The actual error message (conditionMessage(e)).
Functions opt in by capturing their formals once near the top —
.args <- mget(setdiff(names(formals()), "...")) — and then calling
.report_api_error(e, hint = "...", args = .args) from the error handler.
Invisibly NULL. Called for its side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.