ARTEMIS-759 Improve exception message on queue configuration builder

This commit is contained in:
Francesco Nigro 2016-09-28 13:45:17 +02:00
parent bd5786e8bc
commit b4225832e0
1 changed files with 2 additions and 2 deletions

View File

@ -69,10 +69,10 @@ public final class QueueConfig {
private void validateState() {
if (isEmptyOrNull(this.name)) {
throw new IllegalStateException("name can't be null!");
throw new IllegalStateException("name can't be null or empty!");
}
if (isEmptyOrNull(this.address)) {
throw new IllegalStateException("address can't be null!");
throw new IllegalStateException("address can't be null or empty!");
}
}