mirror of
https://github.com/C5H12O5/syno-videoinfo-plugin.git
synced 2025-07-25 17:10:47 +00:00
21 lines
380 B
Python
21 lines
380 B
Python
"""Exception classes for this package."""
|
|
|
|
|
|
class ScrapeError(Exception):
|
|
def __init__(self, error_code: int):
|
|
self.error_code = error_code
|
|
|
|
|
|
class RequestSendError(ScrapeError):
|
|
def __init__(self):
|
|
super().__init__(1003)
|
|
|
|
|
|
class ResultParseError(ScrapeError):
|
|
def __init__(self):
|
|
super().__init__(1004)
|
|
|
|
|
|
class StopSignal(Exception):
|
|
pass
|