use of org.whole.lang.operations.OperationCanceledException in project whole by wholeplatform.
the class TestsInterpreterVisitor method evaluate.
protected IEntity evaluate(Expression subject, boolean catchExceptions) {
// null;
IEntity entity = NullEntity.instance;
try {
subject.accept(this);
entity = getResult();
} catch (OperationCanceledException e) {
throw e;
} catch (RuntimeException e) {
if (catchExceptions)
// save exception for later evaluation
getBindings().wDefValue("thrownException", e);
else
throw e;
}
return entity == null ? NullEntity.instance : entity;
}
Aggregations