Simple overview of use/purpose.
An in-depth paragraph about your project and overview of use.
@ControllerAdvice | |
public class CustomExceptionControllerAdvice { | |
@ExceptionHandler(MultipartException.class) | |
void handleMultipartException(MultipartException ex,HttpServletResponse response) throws IOException { | |
response.sendError(HttpStatus.BAD_REQUEST.value(),"Please select a file"); | |
} | |
@ExceptionHandler(ConstraintViolationException.class) | |
public void handleConstraintViolationException(ConstraintViolationException ex,HttpServletResponse response) throws IOException { |