sponsorblock-ml / src /errors.py
Joshua Lochner
Upgrade classifier to transformer-based model
36f7534
raw
history blame
556 Bytes
class SponsorBlockException(Exception):
"""Base class for all sponsor block exceptions"""
pass
class InferenceException(SponsorBlockException):
"""An exception occurred while predicting sponsor segments"""
pass
class TranscriptError(SponsorBlockException):
"""An exception occurred while retrieving the video transcript"""
pass
class ModelError(SponsorBlockException):
"""Base class for model-related errors"""
pass
class ModelLoadError(ModelError):
"""An exception occurred while loading the model"""
pass