code: def onBatchRejected(self, ledger_id):
          
          if ledger_id == POOL_LEDGER_ID:
              if isinstance(self.poolManager, TxnPoolManager):
                  self.get_req_handler(POOL_LEDGER_ID).onBatchRejected()
          elif self.get_req_handler(ledger_id):
              self.get_req_handler(ledger_id).onBatchRejected()
          else:
              logger.debug('{} did not know how to handle for ledger {}'.format(self, ledger_id))
  
          self.audit_handler.post_batch_rejected(ledger_id)
  
          self.execute_hook(NodeHooks.POST_BATCH_REJECTED, ledger_id)
docs: A batch of requests has been rejected, if stateRoot is None, reject
          the current batch.
          :param ledger_id:
          :param stateRoot: state root after the batch was created
          :return: