public class StravaAPIRateLimitException extends RuntimeException implements StravaAPIException
Thrown when the Strava API returns an HTTP status of 403 (forbidden)
| Constructor and Description |
|---|
StravaAPIRateLimitException(String status,
StravaResponse response,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
StravaResponse |
getResponse()
Return the error message emitted by the Strava API
|
void |
setResponse(StravaResponse response) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StravaAPIRateLimitException(String status, StravaResponse response, Throwable cause)
status - Status stringresponse - Response received from Strava with error detailscause - Underlying cause of the exceptionpublic StravaResponse getResponse()
StravaAPIExceptiongetResponse in interface StravaAPIExceptionStravaAPIException.getResponse()public void setResponse(StravaResponse response)
setResponse in interface StravaAPIExceptionresponse - the response to setStravaAPIException.setResponse(javastrava.api.v3.model.StravaResponse)Copyright © 2015 Dan Shannon. All rights reserved.