Hiding exception from user
This commit is contained in:
@@ -49,8 +49,7 @@ public class TenantConfigurationPollingDurationValidator implements TenantConfig
|
|||||||
} catch (final DateTimeParseException ex) {
|
} catch (final DateTimeParseException ex) {
|
||||||
throw new TenantConfigurationValidatorException(
|
throw new TenantConfigurationValidatorException(
|
||||||
String.format("The given configuration value is expected as a string in the format %s.",
|
String.format("The given configuration value is expected as a string in the format %s.",
|
||||||
DurationHelper.DURATION_FORMAT),
|
DurationHelper.DURATION_FORMAT));
|
||||||
ex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DurationHelper.durationRangeValidator(minDuration, maxDuration).isWithinRange(tenantConfigurationValue)) {
|
if (!DurationHelper.durationRangeValidator(minDuration, maxDuration).isWithinRange(tenantConfigurationValue)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user