@ExceptionHandler({MethodArgumentNotValidException.class, ValidationException.class})
    public ResponseEntity<Response> handleValidationException() {
        return new ResponseEntity<>(
                Response.newBuilder()
                        .withMessage(translate(ExceptionCodes.VALIDATION_ERROR))
                        .withHttpStatus(HttpStatus.INTERNAL_SERVER_ERROR.toString())
                        .build(),
                HttpStatus.INTERNAL_SERVER_ERROR
        );
    }
@ ExceptionHandler ( { MethodArgumentNotValidException . class , ValidationException . class } ) public ResponseEntity < Response > handleValidationException ( ) { return new ResponseEntity < > ( Response . newBuilder ( ) . withMessage ( translate ( ExceptionCodes . VALIDATION_ERROR ) ) . withHttpStatus ( HttpStatus . INTERNAL_SERVER_ERROR . toString ( ) ) . build ( ) , HttpStatus . INTERNAL_SERVER_ERROR ) ; }
Transforming {@link MethodArgumentNotValidException} {@link ValidationException} into server error {@code 500 Internal Server Error}
responses with according validation error message text.

@return A response object wraps the server result