protected String getExceptionMessageVerbose ( String prefixParam , String uniqueReqIdParam , int numberOfSentItemsParam ) { StringBuilder formFieldsCombined = new StringBuilder ( ) ; int returnValSize = - 1 ; RespHandler respHandler = this . getHandler ( uniqueReqIdParam ) ; if ( respHandler instanceof AGenericListMessageHandler ) { List < ? extends ABaseFluidJSONObject > returnValue = ( ( AGenericListMessageHandler ) respHandler ) . getReturnValue ( ) ; if ( returnValue != null ) { returnValSize = returnValue . size ( ) ; returnValue . forEach ( listingItm -> { if ( listingItm instanceof ABaseListing ) { ABaseListing castedToListing = ( ABaseListing ) listingItm ; if ( castedToListing != null ) { castedToListing . getListing ( ) . forEach ( formItm -> { formFieldsCombined . append ( formItm . toString ( ) ) ; } ) ; } } else { formFieldsCombined . append ( listingItm . toString ( ) ) ; } } ) ; } } return ( prefixParam + ": " + "Timeout while waiting for all return data. There were '" + returnValSize + "' items after a Timeout of " + ( TimeUnit . MILLISECONDS . toSeconds ( this . getTimeoutInMillis ( ) ) ) + " seconds on req-ref-nr '" + uniqueReqIdParam + "'. Expected a total of '" + numberOfSentItemsParam + "' forms. Returned-Data '" + formFieldsCombined . toString ( ) + "'." ) ; }
Generate a verbose Exception message .