![JAR search and dependency download from the Maven repository](/logo.png)
de.jsone_studios.wrapper.spotify.SpotifyApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-web-api-java Show documentation
Show all versions of spotify-web-api-java Show documentation
A Java wrapper for Spotify's Web API using Retrofit
The newest version!
package de.jsone_studios.wrapper.spotify;
import de.jsone_studios.wrapper.spotify.models.ErrorDetails;
import java.io.IOException;
public class SpotifyApiException extends IOException {
private ErrorDetails error;
public SpotifyApiException(ErrorDetails error) {
super(error.status + " " + error.message);
this.error = error;
}
public SpotifyApiException(String message, Throwable cause) {
super(message, cause);
}
public SpotifyApiException(String message, ErrorDetails error) {
super(message + ": " + error.status + " " + error.message);
this.error = error;
}
public SpotifyApiException(String message, ErrorDetails error, Throwable cause) {
super(message + ": " + error.status + " " + error.message, cause);
this.error = error;
}
public ErrorDetails getError() {
return error;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy