
com.zandero.rest.exception.WebApplicationExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest.vertx Show documentation
Show all versions of rest.vertx Show documentation
JAX-RS REST annotation processor for vert.x verticals
The newest version!
package com.zandero.rest.exception;
import io.vertx.core.http.*;
import javax.ws.rs.WebApplicationException;
/**
*
*/
public class WebApplicationExceptionHandler implements ExceptionHandler {
@Override
public void write(WebApplicationException result, HttpServerRequest request, HttpServerResponse response) {
response.setStatusCode(result.getResponse().getStatus());
response.end(result.getMessage());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy