From: jsimomaa Date: Wed, 28 Dec 2016 14:00:09 +0000 (+0200) Subject: Adding more detailed message to thrown exceptions in SyncElementFactory X-Git-Tag: v1.26.0~10^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F229%2F1;p=simantics%2Fplatform.git Adding more detailed message to thrown exceptions in SyncElementFactory refs #6898 Change-Id: I7d9c2b175f25d06b84fbda8938875bb8ab824f81 --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/SyncElementFactory.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/SyncElementFactory.java index be03b9125..7087e70c4 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/SyncElementFactory.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/SyncElementFactory.java @@ -57,7 +57,7 @@ public class SyncElementFactory extends ElementFactoryAdapter { public ElementClass create(ReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementType) throws DatabaseException { - throw new UnsupportedOperationException(); + throw new UnsupportedOperationException("This method should be implemented by subclass " + getClass().getName()); } public boolean isOk(ReadGraph graph, Resource elementResource) throws DatabaseException { @@ -66,7 +66,7 @@ public class SyncElementFactory extends ElementFactoryAdapter { public void load(ReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource, IElement element) throws DatabaseException { - throw new UnsupportedOperationException(); + throw new UnsupportedOperationException("This method should be implemented by subclass " + getClass().getName()); } }