Add and make use of Lombok Remove Mojang API Remove ZipFileUtils Remove StreamTools in favor of Apache IOUtils Keyframe should be abstract all derivatives final Replace clone in Keyframe with copy Move some constants from GuiReplaySetttings to GuiConstants
29 lines
598 B
Java
Executable File
29 lines
598 B
Java
Executable File
package eu.crushedpixel.replaymod.api;
|
|
|
|
import eu.crushedpixel.replaymod.api.replay.holders.ApiError;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
public class ApiException extends Exception {
|
|
|
|
private static final long serialVersionUID = 349073390504232810L;
|
|
|
|
private ApiError error;
|
|
|
|
public ApiException(ApiError error) {
|
|
super(error.getTranslatedDesc());
|
|
this.error = error;
|
|
}
|
|
|
|
public ApiException(String error) {
|
|
super(error);
|
|
}
|
|
|
|
public ApiError getError() {
|
|
return error;
|
|
}
|
|
|
|
}
|