Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x 6935b4f36 -> bd834db25


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/bd834db2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bd834db2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bd834db2

Branch: refs/heads/camel-2.18.x
Commit: bd834db257dde41eaa06aa0248b493fc0d144ce2
Parents: 6935b4f
Author: JC <[email protected]>
Authored: Thu Dec 22 06:32:57 2016 -0500
Committer: Andrea Cosentino <[email protected]>
Committed: Thu Dec 22 13:16:01 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/camel/blob/bd834db2/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.

Reply via email to