This commit is contained in:
Keith Donald
2008-03-27 11:01:33 +00:00
parent 8c020270f9
commit 7fcb7bc2d0
2 changed files with 8 additions and 6 deletions

View File

@@ -4,11 +4,12 @@ import org.springframework.binding.mapping.MappingResults;
public class FlowInputMappingException extends FlowAttributeMappingException {
public FlowInputMappingException(String flowId, MappingResults results) {
super(flowId, null, results, "Errors occured during flow input mapping; errors = " + results.getErrorResults());
super(flowId, null, results, "Errors occurred during input mapping on startup of the '" + flowId
+ "' flow; errors = " + results.getErrorResults());
}
public FlowInputMappingException(String flowId, String stateId, MappingResults results) {
super(flowId, stateId, results, "Errors occured during flow input mapping; errors = "
+ results.getErrorResults());
super(flowId, stateId, results, "Errors occurred during input mapping in state '" + stateId + "' of flow '"
+ flowId + "'; errors = " + results.getErrorResults());
}
}

View File

@@ -4,11 +4,12 @@ import org.springframework.binding.mapping.MappingResults;
public class FlowOutputMappingException extends FlowAttributeMappingException {
public FlowOutputMappingException(String flowId, MappingResults results) {
this(flowId, null, results);
super(flowId, null, results, "Errors occurred during output mapping on ending of the '" + flowId
+ "' flow; errors = " + results.getErrorResults());
}
public FlowOutputMappingException(String flowId, String stateId, MappingResults results) {
super(flowId, stateId, results, "Errors occured during flow output mapping; errors = "
+ results.getErrorResults());
super(flowId, stateId, results, "Errors occurred during output mapping in state '" + stateId + "' of flow '"
+ flowId + "'; errors = " + results.getErrorResults());
}
}