Skip to content

Commit 0269133

Browse files
committed
Skip throwing errors in recursive methods.
1 parent cfb909b commit 0269133

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserStoreManager.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,11 +3276,8 @@ private List<String> doGetUserList(String claim, String claimValue, String profi
32763276
continue;
32773277
}
32783278
} catch (org.wso2.carbon.user.api.UserStoreException e) {
3279-
handleGetUserListFailure(ErrorMessages.ERROR_CODE_ERROR_DURING_PRE_GET_USER_LIST.getCode(),
3280-
String.format(ErrorMessages.ERROR_CODE_ERROR_DURING_PRE_GET_USER_LIST.getMessage(),
3281-
e.getMessage()), claim, claimValue, profileName);
3282-
throw new UserStoreException(
3283-
"Error occurred while retrieving claim for claim URI: " + claim, e);
3279+
log.error(String.format("Error occurred while retrieving claim for claim URI: %s for domain: %s.",
3280+
claim, domainName), e);
32843281
}
32853282

32863283
String claimValueWithDomain;
@@ -3555,11 +3552,8 @@ private List<User> doGetUserListWithID(String claim, String claimValue, String p
35553552
continue;
35563553
}
35573554
} catch (org.wso2.carbon.user.api.UserStoreException e) {
3558-
handleGetUserListFailureWithID(ErrorMessages.ERROR_CODE_ERROR_DURING_PRE_GET_USER_LIST.getCode(),
3559-
String.format(ErrorMessages.ERROR_CODE_ERROR_DURING_PRE_GET_USER_LIST.getMessage(),
3560-
e.getMessage()), claim, claimValue, profileName);
3561-
throw new UserStoreException(
3562-
"Error occurred while retrieving claim for claim URI: " + claim, e);
3555+
log.error(String.format("Error occurred while retrieving claim for claim URI: %s for domain: %s.",
3556+
claim, domainName), e);
35633557
}
35643558

35653559
String claimValueWithDomain;

0 commit comments

Comments
 (0)