public class

AuthorizationException

extends RemoteMessageException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ fm.audiobox.core.exceptions.AudioBoxException
           ↳ fm.audiobox.core.exceptions.RemoteMessageException
             ↳ fm.audiobox.core.exceptions.AuthorizationException

Class Overview

This exception is thrown when the OAuth2 token and/or the refresh token have been invalidated or they are expired.

When this exception is thrown a new user authentication is required.

It is also highly recommended to invalidate/delete/clear any stored credential.

Summary

[Expand]
Inherited Fields
From class fm.audiobox.core.exceptions.AudioBoxException
Public Constructors
AuthorizationException(HttpResponse response)
Instantiates a new Authorization exception.
AuthorizationException(TokenResponseException tokenException)
Instantiates a new Authorization exception.
AuthorizationException(Errors errors, int statusCode)
Instantiates a new Authorization exception.
[Expand]
Inherited Methods
From class fm.audiobox.core.exceptions.RemoteMessageException
From class fm.audiobox.core.exceptions.AudioBoxException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AuthorizationException (HttpResponse response)

Instantiates a new Authorization exception.

Parameters
response the response that thrown the exception

public AuthorizationException (TokenResponseException tokenException)

Instantiates a new Authorization exception.

Parameters
tokenException the TokenResponseException

public AuthorizationException (Errors errors, int statusCode)

Instantiates a new Authorization exception.

Parameters
errors the errors
statusCode the status code