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