X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.common%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fcommon%2Fprocedure%2Fsingle%2Fwrapper%2FDeepSingleOrErrorProcedure.java;h=739c03d1ea44f59260c4321b35b46be29e2d5643;hp=b1de8c25de531ed06548e2e20dc429ba94916244;hb=bc5e6cb19f6af5f67bc5cfaad7d602841b8fdd0b;hpb=91682baa9a8252390f09b80fd724f47e5957b234 diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/single/wrapper/DeepSingleOrErrorProcedure.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/single/wrapper/DeepSingleOrErrorProcedure.java index b1de8c25d..739c03d1e 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/single/wrapper/DeepSingleOrErrorProcedure.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/single/wrapper/DeepSingleOrErrorProcedure.java @@ -46,7 +46,7 @@ final public class DeepSingleOrErrorProcedure { 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); } @@ -66,7 +66,7 @@ final public class DeepSingleOrErrorProcedure { // 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); }