01: package org.drools.base;
02:
03: import org.drools.WorkingMemory;
04: import org.drools.spi.Activation;
05: import org.drools.spi.ConsequenceException;
06: import org.drools.spi.ConsequenceExceptionHandler;
07:
08: public class DefaultConsequenceExceptionHandler implements
09: ConsequenceExceptionHandler {
10:
11: public void handleException(Activation activation,
12: WorkingMemory workingMemory, Exception exception) {
13: exception.printStackTrace();
14: throw new ConsequenceException(exception, activation.getRule());
15: }
16:
17: }
|