You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/12/22 12:14:18 UTC

camel git commit: CAMEL-10637: Throw IllegalStateException with a correct exception message

Repository: camel
Updated Branches:
  refs/heads/master 9466a0574 -> c9e1bf33a


CAMEL-10637: Throw IllegalStateException with a correct exception message


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c9e1bf33
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c9e1bf33
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c9e1bf33

Branch: refs/heads/master
Commit: c9e1bf33aaff20b4698f926b0a11589167beab65
Parents: 9466a05
Author: JC <jc...@lifove.net>
Authored: Thu Dec 22 06:32:57 2016 -0500
Committer: JC <jc...@lifove.net>
Committed: Thu Dec 22 06:32:57 2016 -0500

----------------------------------------------------------------------
 .../camel/component/ignite/messaging/IgniteMessagingEndpoint.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c9e1bf33/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java b/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
index ca375f2..124d4c7 100644
--- a/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
+++ b/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
@@ -76,7 +76,7 @@ public class IgniteMessagingEndpoint extends AbstractIgniteEndpoint {
     public Consumer createConsumer(Processor processor) throws Exception {
         // Validate options.
         if (topic == null) {
-            new IllegalStateException("Cannot initialize an Ignite Messaging Producer with a null topic.");
+            throw new IllegalStateException("Cannot initialize an Ignite Messaging Consumer with a null topic.");
         }
 
         // Initialize the Consumer.