Class APINotAuthorizedException

  • All Implemented Interfaces:
    Serializable

    public final class APINotAuthorizedException
    extends APICommunicationException
    Specific type of APICommunicationException 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
    • 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.