Added support for Mojang API calls in ApiClient

Added Mojang API call to retreive Player profile
This commit is contained in:
CrushedPixel
2015-05-20 16:33:40 +02:00
parent 2f057ce0b1
commit 80fbcddb87
32 changed files with 346 additions and 94 deletions

View File

@@ -0,0 +1,31 @@
package eu.crushedpixel.replaymod.api;
import eu.crushedpixel.replaymod.api.replay.holders.ApiError;
public class ApiException extends Exception {
private static final long serialVersionUID = 349073390504232810L;
private ApiError error;
private String errorMsg;
public ApiException(ApiError error) {
super(error.getTranslatedDesc());
this.error = error;
this.errorMsg = error.getTranslatedDesc();
}
public ApiException(String error) {
super(error);
this.errorMsg = error;
}
public ApiError getError() {
return error;
}
public String getErrorMsg() {
return errorMsg;
}
}