Exemplo n.º 1
0
 private void validateAccountPreferences(Long stackId, Integer scalingAdjustment) {
   try {
     accountPreferencesValidator.validate(stackId, scalingAdjustment);
   } catch (AccountPreferencesValidationFailed e) {
     throw new BadRequestException(e.getMessage(), e);
   }
 }
Exemplo n.º 2
0
 private void validateAccountPreferences(Stack stack, CbUser user) {
   try {
     accountPreferencesValidator.validate(stack, user.getAccount(), user.getUserId());
   } catch (AccountPreferencesValidationFailed e) {
     throw new BadRequestException(e.getMessage(), e);
   }
 }