com.lucadev.coinmarketcap.api.ApiResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coinmarketcap-api Show documentation
Show all versions of coinmarketcap-api Show documentation
A REST API client specifically developed to connect to the CoinMarketCap API.
The newest version!
package com.lucadev.coinmarketcap.api;
import com.lucadev.coinmarketcap.model.ApiResponse;
/**
* Exception for when an api request fails
*
* @author Luca Camphuisen
* @since 6-5-18
*/
public class ApiResponseException extends RuntimeException {
private final ApiResponse> apiResponse;
public ApiResponseException(ApiResponse> apiResponse) {
super("Failed API Request. Returned: " + apiResponse.getError());
this.apiResponse = apiResponse;
}
public ApiResponse> getApiResponse() {
return apiResponse;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy