Class SpotifyWebApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
se.michaelthelin.spotify.exceptions.SpotifyWebApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadGatewayException
,BadRequestException
,ForbiddenException
,InternalServerErrorException
,NotFoundException
,ServiceUnavailableException
,TooManyRequestsException
,UnauthorizedException
public class SpotifyWebApiException
extends org.apache.hc.core5.http.HttpException
An exception happened, eg. a HTTP status code 4** or 5** has been returned in a request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SpotifyWebApiException with no detail message.SpotifyWebApiException
(String message) Creates a new SpotifyWebApiException with the specified detail message.SpotifyWebApiException
(String message, Throwable cause) Creates a new SpotifyWebApiException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SpotifyWebApiException
public SpotifyWebApiException()Creates a new SpotifyWebApiException with no detail message. -
SpotifyWebApiException
Creates a new SpotifyWebApiException with the specified detail message.- Parameters:
message
- the detail message
-
SpotifyWebApiException
Creates a new SpotifyWebApiException with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-