src/transformers/pipelines/base.py/PipelineException/__init__
class PipelineException:    def __init__(self, task: str, model: str, reason: str):
        super().__init__(reason)

        self.task = task
        self.model = model