Class RestExceptionHandler

java.lang.Object
com.skava.marketplace.util.RestExceptionHandler

@Order(-2147483648) @RestControllerAdvice public class RestExceptionHandler extends Object
Class for handling ConstraintViolationException
  • Constructor Details

    • RestExceptionHandler

      public RestExceptionHandler()
  • Method Details

    • handleConstraintViolationException

      @ExceptionHandler(jakarta.validation.ConstraintViolationException.class) protected org.springframework.http.ResponseEntity<Object> handleConstraintViolationException(jakarta.validation.ConstraintViolationException constraintViolations, jakarta.servlet.http.HttpServletRequest request)
      handleConstraintViolationException function used to handle
      Parameters:
      constraintViolations - ConstraintViolationException.
      request - http servlet request
      Returns:
      ResponseEntity Object