code: def raise_on_errors(self):
          
          if self.errors:
              raise NotificationError(
                  provider=self.provider,
                  data=self.data,
                  errors=self.errors,
                  response=self.response,
              )
docs: Raises a :class:`~notifiers.exceptions.NotificationError` if response hold errors
  
          :raises: :class:`~notifiers.exceptions.NotificationError`: If response has errors