Interface ExceptionHandler

All Known Implementing Classes:
ConstraintViolationExceptionHandler, DefaultExceptionHandler, HttpStatusCodeAwareExceptionHandler, ViewNotResolvedExceptionHandler

public interface ExceptionHandler
Handles exceptions thrown during the HTTP request handling.
Author:
Alfonso Vásquez
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Exception ex)
    Attempts to handle the exception.
  • Method Details

    • handle

      boolean handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Exception ex) throws IOException
      Attempts to handle the exception. If it can be handled, returns true, else false is returned.
      Throws:
      IOException