com.lajospolya.spotifyapiwrapper.response.SpotifyErrorContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-api-wrapper Show documentation
Show all versions of spotify-api-wrapper Show documentation
This project wraps the Spotify public API in order to allow users to intuitively use it
package com.lajospolya.spotifyapiwrapper.response;
/**
* @author Lajos Polya
* Represent the container for an errpr response
*/
public class SpotifyErrorContainer
{
private SpotifyError error;
@Override
public String toString()
{
return "Returned a status of \"" + error.getStatus() + "\" with error message \"" + error.getMessage() + "\"";
}
public SpotifyError getError()
{
return error;
}
public void setError(SpotifyError error)
{
this.error = error;
}
}