ProposalResponse in gateway SDK #fabric-questions #fabric-sdk-java

mattia bolzonella

I'm looking at the source code of the gateway SDk, in particulare the submitTransaction method, I'm using the service discovery. As I can tell if the TransactionProposal fails (the chaincode returns a ProposalResponse with status 500) in the Channel class of the base SDK an Exception is thrown because the DiscoveryOption inspectResult is not set to true which is used if all ProposalResponse invalid and valid are required in the application for further inspection, like get the Response message.
Instead, a generic GatewayRuntimeException is returned with the default message "Could not meet endorsement policy for chaincode ... . So my question is: Can i get the invalid response message returned by the chaincode using the gateway SDK?