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;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: DE39D75CF0CFE6FCE886FFCFFF3B5046
* @ConQAT.Rating YELLOW Hash: E1D7973CB847D9073FA00F6530407BC5
*/
public final class TransformationUtils {
......@@ -62,9 +62,9 @@ public final class TransformationUtils {
Object executableObject = null;
for(TransformationProviderChain chain : chainList) {
try {
// for the moment, we use the first chain
// alternatives need an interpretation of the context, which
// we do not use at the moment
// For the moment, we use the first chain.
// Alternatives need an interpretation of the context, which
// we do not use at the moment.
executableObject = chain.transform(sourceElement, context);
e = null;
break;
......@@ -77,9 +77,6 @@ public final class TransformationUtils {
return (T)executableObject;
}
}
if(e != null) {
throw new ChainTransformationFailedException(null, null, null, e);
}
throw new NoTransformationChainFound(sourceElement, targetClass);
}
......@@ -115,7 +112,6 @@ public final class TransformationUtils {
public Class<?> getTargetClass() {
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