Skip to content

Commit

Permalink
MOSIP-32842 Fixed test case failure
Browse files Browse the repository at this point in the history
Signed-off-by: kameshsr <[email protected]>
  • Loading branch information
kameshsr committed May 21, 2024
1 parent 3439db1 commit 11ded25
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public class ApiExceptionHandler extends ResponseEntityExceptionHandler {
* Exception to be thrown when validation on an argument annotated with {@code @Valid} fails.
*
*/
@ExceptionHandler(MethodArgumentNotValidException.class)
protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers,
protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers,
HttpStatus status, WebRequest request) {
ExceptionUtils.logRootCause(ex);
List<FieldError> fieldErrors = ex.getBindingResult().getFieldErrors();
Expand Down Expand Up @@ -150,7 +149,6 @@ private ResponseEntity<ResponseWrapper<ServiceError>> getErrorResponseEntity(Req
* This method extract the response from HttpServletRequest request.
*
* @param httpServletRequest
* @param e
* @param httpStatus
* @return
* @throws IOException
Expand Down

0 comments on commit 11ded25

Please sign in to comment.