Skip to content

Commit a488c8d

Browse files
Merge pull request #192 from praveenadg/develop
#128 : updated IntuitBatchInterceptorProvider.java to throw FMSException with intuit_tid
2 parents 4af85f4 + ba93b55 commit a488c8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public void executeInterceptors(final List<IntuitMessage> intuitMessages) throws
7575
try {
7676
message.getResponseElements().getResponseContent().reset();
7777
} catch (Exception ex) {
78-
LOG.error("IllegalStateException while get the content from HttpRespose.", ex);
78+
LOG.error("IllegalStateException while get the content from HttpResponse.", ex);
79+
if(message.getRequestElements() != null && message.getRequestElements().getRequestHeaders()!= null) {
80+
throw new FMSException("IllegalStateException while get the content from HttpResponse.", ex, message.getRequestElements().getRequestHeaders().get(RequestElements.HEADER_INTUIT_TID));
81+
}
7982
throw new FMSException(ex);
8083
}
8184
executeResponseInterceptors(message);

0 commit comments

Comments
 (0)