Skip to content
Snippets Groups Projects
Commit 4ac70381 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

changes the way "NoTransformationFound" is thrown

refs 2352
parent 5eb45fa7
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.service.ITransformationService; ...@@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.service.ITransformationService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating GREEN Hash: DE39D75CF0CFE6FCE886FFCFFF3B5046 * @ConQAT.Rating YELLOW Hash: E1D7973CB847D9073FA00F6530407BC5
*/ */
public final class TransformationUtils { public final class TransformationUtils {
...@@ -62,9 +62,9 @@ public final class TransformationUtils { ...@@ -62,9 +62,9 @@ public final class TransformationUtils {
Object executableObject = null; Object executableObject = null;
for(TransformationProviderChain chain : chainList) { for(TransformationProviderChain chain : chainList) {
try { try {
// for the moment, we use the first chain // For the moment, we use the first chain.
// alternatives need an interpretation of the context, which // Alternatives need an interpretation of the context, which
// we do not use at the moment // we do not use at the moment.
executableObject = chain.transform(sourceElement, context); executableObject = chain.transform(sourceElement, context);
e = null; e = null;
break; break;
...@@ -77,9 +77,6 @@ public final class TransformationUtils { ...@@ -77,9 +77,6 @@ public final class TransformationUtils {
return (T)executableObject; return (T)executableObject;
} }
} }
if(e != null) {
throw new ChainTransformationFailedException(null, null, null, e);
}
throw new NoTransformationChainFound(sourceElement, targetClass); throw new NoTransformationChainFound(sourceElement, targetClass);
} }
...@@ -115,7 +112,6 @@ public final class TransformationUtils { ...@@ -115,7 +112,6 @@ public final class TransformationUtils {
public Class<?> getTargetClass() { public Class<?> getTargetClass() {
return targetClass; return targetClass;
} }
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment