From: Jani Simomaa Date: Wed, 28 Dec 2016 14:16:34 +0000 (+0200) Subject: Merge "Adding more detailed message to thrown exceptions in SyncElementFactory" X-Git-Tag: v1.26.0~10 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=ca40974f87c9db00eb77aaf1acc1e9937b37261b;hp=e73c1660b2f4d2a03784451e9e6afe1552b00877 Merge "Adding more detailed message to thrown exceptions in SyncElementFactory" --- 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()); } }