
io.eosif.lib.rpc.exception.ApiException Maven / Gradle / Ivy
package io.eosif.lib.rpc.exception;
/**
*
* @author espritblock http://eblock.io
*
*/
public class ApiException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
private ApiError error;
public ApiException(ApiError apiError) {
this.error = apiError;
}
public ApiException(Throwable cause) {
super(cause);
}
public ApiError getError() {
return error;
}
public void setError(ApiError error) {
this.error = error;
}
@Override
public String getMessage() {
if (error != null) {
return error.getMessage();
}
return super.getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy