Package com.xero.api
Class XeroDailyRateLimitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.xero.api.XeroException
-
- com.xero.api.XeroRateLimitException
-
- com.xero.api.XeroDailyRateLimitException
-
- All Implemented Interfaces:
Serializable
public class XeroDailyRateLimitException extends XeroRateLimitException
handle daily rate limit exception- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class com.xero.api.XeroRateLimitException
getAppLimitRemaining, getDayLimitRemaining, getMessage, getMinuteLimitRemaining, getRetryAfterSeconds, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XeroDailyRateLimitException
public XeroDailyRateLimitException(int statusCode, Integer appLimitRemaining, Integer dayLimitRemaining, Integer minuteLimitRemaining, Long retryAfterSeconds, String message, Exception e)Init Xero App Daily Rate Limit Exception- Parameters:
statusCode- int the server status code returned.appLimitRemaining- Integer the number of calls remaining for app limitdayLimitRemaining- Integer the number of calls in a 24 hour rolling window remain for an orgminuteLimitRemaining- Integer the number of calls in a 60 second rolling window remain for an orgretryAfterSeconds- Long the number of seconds to wait before resuming API callsmessage- String the message pertaining to the rate limite- Exception object with details about the original exception
-
-