result = statement.executeQuery();
EventStream eventStream = this.buildEventStream(result);
if (eventStream.version() == 0) {
throw new EventStoreException(
"There is no such event stream: "
+ anIdentity.streamName()
+ " : "
+ anIdentity.streamVersion());
}
connection.commit();
return eventStream;
} catch (Throwable t) {
throw new EventStoreException(
"Cannot query event stream for: "
+ anIdentity.streamName()
+ " since version: "
+ anIdentity.streamVersion()
+ " because: "