Repository: activemq-artemis Updated Branches: refs/heads/master bd5786e8b -> bfbe68f0c
ARTEMIS-759 Improve exception message on queue configuration builder Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/b4225832 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/b4225832 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/b4225832 Branch: refs/heads/master Commit: b4225832e0aba30f33d06a499fa7fb4757485fca Parents: bd5786e Author: Francesco Nigro <[email protected]> Authored: Wed Sep 28 13:45:17 2016 +0200 Committer: Francesco Nigro <[email protected]> Committed: Wed Sep 28 13:45:17 2016 +0200 ---------------------------------------------------------------------- .../org/apache/activemq/artemis/core/server/QueueConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b4225832/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/QueueConfig.java ---------------------------------------------------------------------- diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/QueueConfig.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/QueueConfig.java index 64df0da..ce338fe 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/QueueConfig.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/QueueConfig.java @@ -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!"); } }
