Skip to content

Commit

Permalink
Merge pull request #192 from praveenadg/develop
Browse files Browse the repository at this point in the history
 #128 : updated IntuitBatchInterceptorProvider.java to throw FMSException with intuit_tid
  • Loading branch information
fjolin-intuit authored Oct 28, 2022
2 parents 4af85f4 + ba93b55 commit a488c8d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ public void executeInterceptors(final List<IntuitMessage> intuitMessages) throws
try {
message.getResponseElements().getResponseContent().reset();
} catch (Exception ex) {
LOG.error("IllegalStateException while get the content from HttpRespose.", ex);
LOG.error("IllegalStateException while get the content from HttpResponse.", ex);
if(message.getRequestElements() != null && message.getRequestElements().getRequestHeaders()!= null) {
throw new FMSException("IllegalStateException while get the content from HttpResponse.", ex, message.getRequestElements().getRequestHeaders().get(RequestElements.HEADER_INTUIT_TID));
}
throw new FMSException(ex);
}
executeResponseInterceptors(message);
Expand Down

0 comments on commit a488c8d

Please sign in to comment.