i changed the exception-handling of the new producers and localizers to use the multe...
[mir.git] / source / mircoders / producer / ScriptCallProducer.java
index e17087a..8497f43 100755 (executable)
@@ -12,7 +12,7 @@ public class ScriptCallProducer implements mir.producer.Producer {
     script = aScript;
   }
 
-  public void produce( PrintWriter aLogger ) throws ProducerException {
+  public void produce( PrintWriter aLogger ) throws ProducerFailure {
     Process process;
     int returnValue;
 
@@ -26,7 +26,7 @@ public class ScriptCallProducer implements mir.producer.Producer {
     catch (Throwable e) {
       aLogger.println("Exception has occurred: " + e.getMessage() + ":");
       e.printStackTrace(aLogger);
-      throw new ProducerException(e);
+      throw new ProducerFailure("Executing script failed",e);
     }
   }
 }