Package dev.reuss.tmdb.core.exception
Class TmdbRateLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.reuss.tmdb.core.exception.TmdbException
dev.reuss.tmdb.core.exception.TmdbApiException
dev.reuss.tmdb.core.exception.TmdbRateLimitException
- All Implemented Interfaces:
Serializable
Exception thrown when TMDB rejects a request because the rate limit was exceeded.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTmdbRateLimitException(String message, int httpStatus, int tmdbStatusCode, String responseBody) Creates a rate-limit API exception. -
Method Summary
Methods inherited from class dev.reuss.tmdb.core.exception.TmdbApiException
error, httpStatus, responseBody, tmdbStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TmdbRateLimitException
public TmdbRateLimitException(String message, int httpStatus, int tmdbStatusCode, String responseBody) Creates a rate-limit API exception.- Parameters:
message- error messagehttpStatus- HTTP status codetmdbStatusCode- TMDB status code, or0if unavailableresponseBody- raw response body
-