code: def effects(self, raise_on_error=True):
          
          return EffectCollection([
              effect
              for variant in self
              for effect in variant.effects(raise_on_error=raise_on_error)
          ])
docs: Parameters
          ----------
          raise_on_error : bool, optional
              If exception is raised while determining effect of variant on a
              transcript, should it be raised? This default is True, meaning
              errors result in raised exceptions, otherwise they are only logged.