Skip to content

Instantly share code, notes, and snippets.

View songyunlu's full-sized avatar

Jimmy Lu songyunlu

View GitHub Profile
package servletutils;
import com.google.common.base.Preconditions;
import javax.servlet.*;
import javax.servlet.http.*;
public class UnhandledExceptionFilter implements Filter {
public interface ErrorHandler {
void handle(HttpServletRequest request, HttpServletResponse response, Throwable throwable);