Skip to content

Commit c7af7ec

Browse files
authored
Update IntuitBatchInterceptorProvider.java
1 parent 16c7038 commit c7af7ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/IntuitBatchInterceptorProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public void executeInterceptors(final List<IntuitMessage> intuitMessages) throws
7676
message.getResponseElements().getResponseContent().reset();
7777
} catch (Exception ex) {
7878
LOG.error("IllegalStateException while get the content from HttpRespose.", ex);
79+
if(message.getRequestElements() != null && message.getRequestElements().getRequestHeaders()!= null) {
80+
throw new FMSException("IllegalStateException while get the content from HttpRespose.", ex, message.getRequestElements().getRequestHeaders().get(RequestElements.HEADER_INTUIT_TID));
81+
}
7982
throw new FMSException(ex);
8083
}
8184
executeResponseInterceptors(message);

0 commit comments

Comments
 (0)