ytdl-sub/src/ytdl_sub/utils/exceptions.py
Jesse Bannon 9fd97beca3
[BACKEND|BUG] Retry downloads with missing files (#137)
* [BACKEND|BUG] Retry downloads with missing files

* fix if statement, rename channel test file
2022-08-01 12:39:23 -07:00

38 lines
1.1 KiB
Python

class ValidationException(ValueError):
"""Any user-caused configuration error should result in this error"""
class StringFormattingException(ValidationException):
"""Tried to format a string but failed due to user misconfigured variables"""
class StringFormattingVariableNotFoundException(StringFormattingException):
"""Tried to format a string but the variable was not found"""
class InvalidVariableNameException(ValidationException):
"""A user defined variable name is invalid"""
class DownloadArchiveException(ValueError):
"""Any user or file errors caused by download archive or mapping files"""
class FileNotFoundException(ValidationException):
"""Any user file that's expected to exist, but is not found"""
class InvalidYamlException(ValidationException):
"""User yaml that is invalid"""
class RegexNoMatchException(ValidationException):
"""Regex failed to match during download"""
class InvalidDlArguments(ValidationException):
"""dl arguments that are invalid"""
class FileNotDownloadedException(ValueError):
"""ytdlp failed to download something"""