in taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/ErrorValueHandler.java [44:69]
public static String buildErrorValueString(ErrorDocument errorValue) throws IOException {
String errDocumentString = errorValue.getMessage() + "\n";
String exceptionMessage = errorValue.getMessage();
if (exceptionMessage != null && !exceptionMessage.equals("")) {
DefaultMutableTreeNode exceptionMessageNode = new DefaultMutableTreeNode(
exceptionMessage);
errDocumentString += exceptionMessageNode + "\n";
errDocumentString += errorValue.getTrace();
}
List<Path> errorReferences = errorValue.getCausedBy();
if (!errorReferences.isEmpty()) {
errDocumentString += "Set of cause errors to follow." + "\n";
}
int errorCounter = 1;
for (Path cause : errorReferences) {
if (DataBundles.isError(cause)) {
errDocumentString += "ErrorValue " + (errorCounter++) + "\n";
errDocumentString += buildErrorValueString(DataBundles.getError(cause)) + "\n";
}
}
return errDocumentString;
}