return new RepositoryResult<Statement>(
new ExceptionConvertingIteration<Statement, RepositoryException>(listTriplesInternalSnapshot(subject, predicate, object, context, inferred, snapshotDate)) {
@Override
protected RepositoryException convert(Exception e) {
return new RepositoryException("database error while iterating over result set",e);
}
}
);
}