21 lines
433 B
Java
21 lines
433 B
Java
package xyz.maggioni.ProvaArgo;
|
|
|
|
import org.json.JSONObject;
|
|
|
|
public class ArgoException extends Exception {
|
|
private JSONObject response;
|
|
|
|
ArgoException(JSONObject response) {
|
|
this.response = response;
|
|
}
|
|
|
|
public JSONObject getResponse() {
|
|
return response;
|
|
}
|
|
|
|
@Override
|
|
public String getMessage() {
|
|
return "Marks fetch failed with the following data: "+response.toString();
|
|
}
|
|
}
|