Package dev.reuss.tmdb.core.exception
Class TmdbUnauthorizedException
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.TmdbUnauthorizedException
- All Implemented Interfaces:
Serializable
Exception thrown when TMDB rejects a request because authentication or authorization failed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTmdbUnauthorizedException(String message, int httpStatus, int tmdbStatusCode, String responseBody) Creates an unauthorized 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
-
TmdbUnauthorizedException
public TmdbUnauthorizedException(String message, int httpStatus, int tmdbStatusCode, String responseBody) Creates an unauthorized API exception.- Parameters:
message- error messagehttpStatus- HTTP status codetmdbStatusCode- TMDB status code, or0if unavailableresponseBody- raw response body
-