public class QuandlTooManyRequestsException extends QuandlRuntimeException
| Constructor and Description |
|---|
QuandlTooManyRequestsException(String message)
Constructor when exception is not caused by an underlying exception.
|
QuandlTooManyRequestsException(String message,
Long retryAfter,
Long rateLimitLimit,
Long rateLimitRemaining)
Constructor when exception is not caused by an underlying exception.
|
QuandlTooManyRequestsException(String message,
Long retryAfter,
Long rateLimitLimit,
Long rateLimitRemaining,
Throwable cause)
Constructor when exception is caused by an underlying exception.
|
QuandlTooManyRequestsException(String message,
Throwable cause)
Constructor when another exception is being included.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getRateLimitLimit() |
Long |
getRateLimitRemaining() |
Long |
getRetryAfter() |
boolean |
isDataExhausted() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic QuandlTooManyRequestsException(String message, Throwable cause)
message - a message describing the exception, not nullcause - the cause of the exception if there is one, not nullpublic QuandlTooManyRequestsException(String message)
message - a message describing the exception, not nullpublic QuandlTooManyRequestsException(String message, Long retryAfter, Long rateLimitLimit, Long rateLimitRemaining)
message - a message describing the exception, not nullretryAfter - the number of seconds the server has told the client to retry after, or null if not availablerateLimitLimit - the server reported total number of requests allowed in this session in total (presumably one day), or null if not availablerateLimitRemaining - the server reported remaining number of requests allowed in this session (presumably reset each day), or null if not availablepublic QuandlTooManyRequestsException(String message, Long retryAfter, Long rateLimitLimit, Long rateLimitRemaining, Throwable cause)
message - a message describing the exception, not nullretryAfter - the number of seconds the server has told the client to retry after, or null if not availablerateLimitLimit - the server reported total number of requests allowed in this session in total (presumably one day), or null if not availablerateLimitRemaining - the server reported remaining number of requests allowed in this session (presumably reset each day), or null if not availablecause - the cause of the exception if there is one, not nullpublic Long getRetryAfter()
public Long getRateLimitLimit()
public Long getRateLimitRemaining()
public boolean isDataExhausted()
Copyright 2014-Present by Jim Moores
${javadoc.footer.license}