Skip to content

Commit

Permalink
Update the API response for the IDV claims update related API.
Browse files Browse the repository at this point in the history
  • Loading branch information
AfraHussaindeen committed Dec 30, 2024
1 parent 6d18be1 commit f64e41a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ public List<VerificationClaimResponse> updateIdVClaims(String userId,
} else if (IdentityVerificationConstants.ErrorMessage.ERROR_INVALID_IDV_PROVIDER.getCode().
equals(e.getErrorCode())) {
throw handleIdVException(e, Constants.ErrorMessage.ERROR_CODE_IDV_PROVIDER_NOT_FOUND, userId);
} else if (IdentityVerificationConstants.ErrorMessage.ERROR_IDV_CLAIM_DATA_ALREADY_EXISTS.getCode().
} else if (IdentityVerificationConstants.ErrorMessage.ERROR_IDV_CLAIM_NOT_FOUND.getCode().
equals(e.getErrorCode())) {
throw handleException(Response.Status.CONFLICT, Constants.ErrorMessage.ERROR_CODE_IDV_CLAIM_CONFLICT,
userId);
throw handleException(Response.Status.NOT_FOUND, Constants.ErrorMessage.ERROR_CODE_IDV_CLAIM_NOT_FOUND,
String.format("for the user : %s", userId));
} else {
throw handleIdVException(e, Constants.ErrorMessage.ERROR_ADDING_VERIFICATION_CLAIM, userId);
throw handleIdVException(e, Constants.ErrorMessage.ERROR_UPDATING_VERIFICATION_CLAIM,
String.format("for the user : %s", userId));
}
}
return createVerificationClaimsResponse(idVClaims);
Expand Down

0 comments on commit f64e41a

Please sign in to comment.