BATCH-859: made the RetryException message clearer

This commit is contained in:
trisberg
2008-10-28 17:26:38 +00:00
parent 97719a9514
commit 363abf8706

View File

@@ -306,7 +306,7 @@ public class FaultTolerantChunkOrientedTasklet<T, S> extends AbstractItemOriente
Exception le = (Exception) context.getLastThrowable();
if (!rollbackClassifier.classify(le)) {
throw new RetryException(
"Invalid retry state caused by exception that does not classify for rollback during write: ", le);
"Invalid retry state caused during write by exception that does not classify for rollback: ", le);
}
for (S item : chunk) {
try {
@@ -320,7 +320,7 @@ public class FaultTolerantChunkOrientedTasklet<T, S> extends AbstractItemOriente
}
else {
throw new RetryException(
"Invalid retry state caused by exception that does not classify for rollback during recovery: ", e);
"Invalid retry state caused during recovery by exception that does not classify for rollback: ", e);
}
}
}