You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/03/05 17:03:30 UTC

svn commit: r633891 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java

Author: jstrachan
Date: Wed Mar  5 08:03:28 2008
New Revision: 633891

URL: http://svn.apache.org/viewvc?rev=633891&view=rev
Log:
added an exception rather than a warning log message if an ArtixDS element type cannot be found for a camel route

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java?rev=633891&r1=633890&r2=633891&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java Wed Mar  5 08:03:28 2008
@@ -91,7 +91,7 @@
             if (elementTypeName != null) {
                 elementType = ObjectHelper.loadClass(elementTypeName, getClass().getClassLoader());
                 if (elementType == null) {
-                    LOG.warn("Could not load ArtixDS Element class: " + elementTypeName + " on the classpath");
+                    throw new IllegalArgumentException("The ArtixDS Element class " + elementTypeName + " is not on the classpath! Cannot use the dataFormat " + this);
                 }
             }
         }