camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-10637: Throw IllegalStateException with a correct exception message
Date Thu, 22 Dec 2016 12:14:18 GMT
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.


Mime
View raw message