Files
m3u8dl/N_m3u8DL_py/src/n_m3u8dl_py/errors.py
T
2026-09-26 13:55:43 +08:00

22 lines
614 B
Python

"""Exceptions raised by the supported Python API."""
class N_m3u8DLError(Exception):
"""Base class for errors raised by the N_m3u8DL-PY API."""
class ManifestError(N_m3u8DLError):
"""The input could not be loaded or parsed as a supported manifest."""
class SelectionError(N_m3u8DLError):
"""The requested media tracks do not exist or cannot be downloaded."""
class DownloadError(N_m3u8DLError):
"""A selected media track could not be downloaded or merged."""
class DownloadCancelledError(N_m3u8DLError):
"""The caller cancelled a download by returning ``False`` from ``on_event``."""