Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void handleCredentialBadRequestException(PowerIdRestException e) throws RejectedCredentialsServiceException, BadProviderDataServiceException {
- String errorCode = e.getPowerIdResponse().getError();
- String errorMessage = e.getPowerIdResponse().getMessage();
- String messagePowerId = (errorCode == null ? "" : errorCode + " - ") + errorMessage;
- if (USR_BLOQ_CODE.equals(errorCode) || USR_BLOQ_MESSAGE.equals(errorMessage)) {
- throw blockedCredentialsServiceException("PowerId: " + messagePowerId);
- }
- if(USR_BLOQ_SEG_CODE.equals(errorCode)){
- throw blockedUserforFraudeServiceException("PowerId: " + (errorCode == null ? "" : errorCode + " - ") + errorMessage);
- }
- throw new BadProviderDataServiceException("PowerId: " + messagePowerId, e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement