Class ConstraintViolationExceptionHandler

java.lang.Object
org.craftercms.engine.http.impl.ConstraintViolationExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class ConstraintViolationExceptionHandler extends Object implements ExceptionHandler
Handler for ConstraintViolationException exceptions
  • Constructor Details

    • ConstraintViolationExceptionHandler

      public ConstraintViolationExceptionHandler()
  • Method Details

    • handle

      public boolean handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Exception ex) throws IOException
      Description copied from interface: ExceptionHandler
      Attempts to handle the exception. If it can be handled, returns true, else false is returned.
      Specified by:
      handle in interface ExceptionHandler
      Throws:
      IOException