Skip to content
Snippets Groups Projects
Commit 56019dc6 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

lots of small fixes

refs 832
parent 5c06c6cd
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ import org.fortiss.tooling.kernel.extension.data.TransformationProviderChain;
/**
* An exception thrown by
* {@link TransformationProviderChain#transform(Object, ITransformationContext)}
* if the transformation failed at some point of the chain. The failed
* {@link TransformationProviderChain#transform(Object, ITransformationContext)} if the
* transformation failed at some point of the chain. The failed
* transformation provider and the successful intermediate results can be
* obtained from this exception.
*
......@@ -44,14 +44,21 @@ public class TransformationFailedException extends Exception {
private final List<Object> successfulResults;
/** Constructor. */
public TransformationFailedException(
ITransformationProvider failedProvider,
public TransformationFailedException(ITransformationProvider failedProvider,
List<Object> successfulResults, TransformationFailedException cause) {
super(cause);
this.failedProvider = failedProvider;
this.successfulResults = successfulResults;
}
/** Constructor. */
public TransformationFailedException(String message, ITransformationProvider failedProvider,
List<Object> successfulResults, TransformationFailedException cause) {
super(message, cause);
this.failedProvider = failedProvider;
this.successfulResults = successfulResults;
}
/** Returns the failed provider. */
public ITransformationProvider getFailedProvider() {
return failedProvider;
......
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