From 09414975498828d06ac41a95a1e3ee5c2531b934 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 28 Dec 2016 16:00:09 +0200 Subject: [PATCH] Adding more detailed message to thrown exceptions in SyncElementFactory refs #6898 Change-Id: I7d9c2b175f25d06b84fbda8938875bb8ab824f81 --- .../src/org/simantics/diagram/adapter/SyncElementFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } } -- 2.47.1