code: def update_exit_code(self, code: int):
          '''Set the exit code if it is serious than before.
  
          Args:
              code: The exit code.
          '''
          if code:
              if self._exit_code:
                  self._exit_code = min(self._exit_code, code)
              else:
                  self._exit_code = codf update_exit_code(self, code: int):
          '''Set the exit code if it is serious than before.
  
          Args:
              code: The exit code.
          '''
          if code:
              if self._exit_code:
                  self._exit_code = min(self._exit_code, code)
              else:
                  self._exit_code = code
docs: Set the exit code if it is serious than before.
  
          Args:
              code: The exit code.