com.manydesigns.portofino.stripes.JaxRsExceptionHandler Maven / Gradle / Ivy
package com.manydesigns.portofino.stripes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.WebApplicationException;
/**
* Silently ignores WebApplicationExceptions (since they're handled by Jax-Rs)
*
* @author Angelo Lupo - [email protected]
* @author Giampiero Granatella - [email protected]
* @author Emanuele Poggi - [email protected]
* @author Alessio Stalla - [email protected]
*/
public class JaxRsExceptionHandler {
public static final String copyright =
"Copyright (C) 2005-2017 ManyDesigns srl";
private static final Logger logger = LoggerFactory.getLogger(JaxRsExceptionHandler.class);
public void handle(WebApplicationException ex, HttpServletRequest request, HttpServletResponse response) {
logger.debug("Ignoring WebApplicationException", ex);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy