if(done.compareAndSet(false, true)) {
try {
if(found.compareAndSet(false, true)) {
- procedure.exception(graph, new NoSingleResultException("No results."));
+ procedure.exception(graph, new NoSingleResultException("No results.", -1));
} else {
procedure.execute(graph, result);
}
// Shall fire exactly once!
if(done.compareAndSet(false, true)) {
try {
- procedure.exception(graph, new NoSingleResultException(this.result + " and " + result));
+ procedure.exception(graph, new NoSingleResultException(this.result + " and " + result, -1));
} catch (Throwable t) {
Logger.defaultLogError(t);
}