Create a structured error condition for failures returned by the AutoDesk
Platform Services (APS) API. Callers can use
tryCatch(..., aps_error = function(e) ...) to handle these errors.
Usage
aps_error(message, status, body, call = sys.call(-1))Examples
if (FALSE) { # \dontrun{
tryCatch(
makeBucket(token = "bad_token"),
aps_error = function(e) cat("HTTP", e$status, "-", e$message)
)
} # }
