Class APINotAuthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.m0nk3y2k4.thetvdb.api.exception.APIException
-
- com.github.m0nk3y2k4.thetvdb.internal.exception.APICommunicationException
-
- com.github.m0nk3y2k4.thetvdb.internal.exception.APINotAuthorizedException
-
- All Implemented Interfaces:
Serializable
public final class APINotAuthorizedException extends APICommunicationException
Specific type ofAPICommunicationException
which handles HTTP-401 responses received from the remote API. Such response may be returned by the remote service in case of requesting a resource using an uninitialized session, which lacks proper authentication.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.github.m0nk3y2k4.thetvdb.api.exception.APIException
API_BAD_METHOD_ERROR, API_CONFLICT_ERROR, API_JSON_PARSE_ERROR, API_NOT_AUTHORIZED_ERROR, API_NOT_FOUND_ERROR, API_SERVICE_UNAVAILABLE
-
-
Constructor Summary
Constructors Constructor Description APINotAuthorizedException(String message)
Creates a new API missing authorization exception with the given error message.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
APINotAuthorizedException
public APINotAuthorizedException(@Nonnull String message)
Creates a new API missing authorization exception with the given error message.- Parameters:
message
- Brief error message describing the authorization issue. Will be appended to some basic exception specific error text.
-
-