Package tigase.licence.utils
Class TooManyRequestsHTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
tigase.stats.collector.provider.HTTPException
tigase.licence.utils.TooManyRequestsHTTPException
- All Implemented Interfaces:
Serializable
public class TooManyRequestsHTTPException
extends tigase.stats.collector.provider.HTTPException
- See Also:
-
Constructor Summary
ConstructorDescriptionTooManyRequestsHTTPException
(int statusCode) Constructor for the TooManyRequestsHTTPExceptionTooManyRequestsHTTPException
(int statusCode, int retryAfter) Constructor for the TooManyRequestsHTTPException -
Method Summary
Methods inherited from class tigase.stats.collector.provider.HTTPException
getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyRequestsHTTPException
public TooManyRequestsHTTPException(int statusCode) Constructor for the TooManyRequestsHTTPException- Parameters:
statusCode
-int
for the HTTP status code
-
TooManyRequestsHTTPException
public TooManyRequestsHTTPException(int statusCode, int retryAfter) Constructor for the TooManyRequestsHTTPException- Parameters:
statusCode
-int
for the HTTP status coderetryAfter
-int
for the delay time after which subsequent request should be made
-
-
Method Details
-
getRetryAfter
public int getRetryAfter() -
getMessage
- Overrides:
getMessage
in classThrowable
-