i changed the exception-handling of the new producers and localizers to use the multe...
[mir.git] / source / mircoders / producer / ContentProducerFactory.java
index 94b437f..a455488 100755 (executable)
@@ -23,7 +23,7 @@ public class ContentProducerFactory implements ProducerFactory {
     batchSize=aBatchSize;
   }
 
-  public mir.producer.Producer makeProducer(String aVerb) throws ProducerException {
+  public mir.producer.Producer makeProducer(String aVerb) throws ProducerFailure {
     try {
       QueryBuilder queryBuilder = new QueryBuilder();
 
@@ -44,7 +44,7 @@ public class ContentProducerFactory implements ProducerFactory {
         outputFileNameExpression
       );
     } catch (Exception e) {
-      throw new ProducerException(e);
+      throw new ProducerFailure("Creating Producer failed",e);
     }
   };