Skip to content

Commit

Permalink
Update javadocs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 18, 2023
1 parent 8cf21f1 commit 3572516
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,20 @@
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;

/**
* A {@link Filter} intended to be used for the purpose of catching uncaught exceptions that are thrown in the servlet execution
* chain.
*/
@WebFilter(filterName="UncaughtServletExceptionFilter", urlPatterns="/*", dispatcherTypes=DispatcherType.REQUEST)
class UncaughtServletExceptionFilter implements Filter {
private final UncaughtServletExceptionHandler uncaughtServletExceptionHandler;

/**
* Creates a new {@link UncaughtServletExceptionFilter} with the provided {@link UncaughtServletExceptionHandler}.
*
* @param uncaughtServletExceptionHandler The {@link UncaughtServletExceptionHandler}.
* @throws NullPointerException If {@code uncaughtServletExceptionHandler} is null.
*/
UncaughtServletExceptionFilter(final UncaughtServletExceptionHandler uncaughtServletExceptionHandler) {
this.uncaughtServletExceptionHandler = Objects.requireNonNull(uncaughtServletExceptionHandler);
}
Expand Down

0 comments on commit 3572516

Please sign in to comment.