Class UncaughtExceptionFilter

java.lang.Object
org.kohsuke.stapler.UncaughtExceptionFilter
All Implemented Interfaces:
jakarta.servlet.Filter, CompatibleFilter

public class UncaughtExceptionFilter extends Object implements CompatibleFilter
  • Field Details

  • Constructor Details

    • UncaughtExceptionFilter

      public UncaughtExceptionFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse rsp, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter
    • setUncaughtExceptionHandler

      public static void setUncaughtExceptionHandler(jakarta.servlet.ServletContext context, UncaughtExceptionHandler handler)
    • getUncaughtExceptionHandler

      public static UncaughtExceptionHandler getUncaughtExceptionHandler(jakarta.servlet.ServletContext context)