import java.io.*;
import mir.producer.*;
import mir.util.*;
+import multex.Exc;
+import multex.Failure;
public class ProducerEngine {
private Map producers;
log = new PrintWriter(new FileWriter(new File("/tmp/producer.log")));
}
catch (Exception e) {
- throw new RuntimeException(e.getMessage());
+ throw new ProducerEngineRuntimeExc("Creating PrintWriter log failed",e);
}
-
queueThread = new Thread(new ProducerJobQueueThread());
queueThread.start();
}
}
}
+
+ public static class ProducerEngineRuntimeExc extends Failure {
+ public ProducerEngineRuntimeExc(String msg, Exception cause){
+ super(msg,cause);
+ }
+ }
+
}
\ No newline at end of file