Don't wrap known errors

This commit is contained in:
Tadgh 2021-09-09 12:27:34 -04:00
parent d5f3b5db18
commit a4ba65a9fd
1 changed files with 3 additions and 3 deletions

View File

@ -1691,7 +1691,7 @@ public abstract class BaseTransactionProcessor {
private final Map<Integer, Object> myResponseMap;
private final int myResponseOrder;
private final boolean myNestedMode;
private Throwable myLastSeenException;
private BaseServerResponseException myLastSeenException;
protected RetriableBundleTask(CountDownLatch theCompletedLatch, RequestDetails theRequestDetails, Map<Integer, Object> theResponseMap, int theResponseOrder, IBase theNextReqEntry, boolean theNestedMode) {
this.myCompletedLatch = theCompletedLatch;
@ -1731,7 +1731,7 @@ public abstract class BaseTransactionProcessor {
myLastSeenException = e;
return false;
} catch (Throwable t) {
myLastSeenException = t;
myLastSeenException = new InternalErrorException(t);
//If we have caught a non-tag-storage failure we are unfamiliar with, or we have exceeded max attempts, exit.
if (!DaoFailureUtil.isTagStorageFailure(t) || attempt >= maxAttempts) {
ourLog.error("Failure during BATCH sub transaction processing", t);
@ -1755,7 +1755,7 @@ public abstract class BaseTransactionProcessor {
private void populateResponseMapWithLastSeenException() {
BaseServerResponseExceptionHolder caughtEx = new BaseServerResponseExceptionHolder();
caughtEx.setException(new InternalErrorException(myLastSeenException));
caughtEx.setException(myLastSeenException);
myResponseMap.put(myResponseOrder, caughtEx);
}