code: def CaptureVariable(self, value, depth, limits, can_enqueue=True):
      
      try:
        return self.CaptureVariableInternal(value, depth, limits, can_enqueue)
      except BaseException as e:  # pylint: disable=broad-except
        return {
            'status': {
                'isError': True,
                'refersTo': 'VARIABLE_VALUE',
                'description': {
                    'format': ('Failed to capture variable: $0'),
                    'parameters': [str(e)]
                }
            }
        }
docs: Try-Except wrapped version of CaptureVariableInternal.