Class UnauthorizedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
se.michaelthelin.spotify.exceptions.SpotifyWebApiException
se.michaelthelin.spotify.exceptions.detailed.UnauthorizedException
All Implemented Interfaces:
Serializable

public class UnauthorizedException extends SpotifyWebApiException
The request requires user authorization or, if the request included authorization credentials, authorization has been refused for those credentials.
See Also:
  • Constructor Details

    • UnauthorizedException

      public UnauthorizedException()
      Constructs a new UnauthorizedException with no detail message.
    • UnauthorizedException

      public UnauthorizedException(String message)
      Constructs a new UnauthorizedException with the specified detail message.
      Parameters:
      message - the detail message
    • UnauthorizedException

      public UnauthorizedException(String message, Throwable cause)
      Constructs a new UnauthorizedException with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause of this exception