22 lines
614 B
Python
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``."""
|