PromoDetect / src /errors.py
Shad0ws's picture
Upload 21 files
b7b7347
raw
history blame contribute delete
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