java-helidon.server.libraries.mp.api_exception.mustache Maven / Gradle / Ivy
{{>licenseInfo}}
package {{apiPackage}};
import {{rootJavaEEPackage}}.ws.rs.core.Response;
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
private final Response response;
public ApiException(Response response) {
super("Api response has status code " + response.getStatus());
this.response = response;
}
public Response getResponse() {
return this.response;
}
}