Files
addon/lib/torrentool/exceptions.py
Alhaziel01 a94ec1cd2a Torrent Download:
- Supporta solo Film
 - Monitor di Download
 - Rinominazione dei file alla fine del download
2020-05-05 19:30:45 +02:00

28 lines
761 B
Python

class TorrentoolException(Exception):
"""Base torrentool exception. All others are inherited from it."""
class BencodeError(TorrentoolException):
"""Base exception for bencode related errors."""
class BencodeDecodingError(BencodeError):
"""Raised when torrentool is unable to decode bencoded data."""
class BencodeEncodingError(BencodeError):
"""Raised when torrentool is unable to encode data into bencode."""
class TorrentError(TorrentoolException):
"""Base exception for Torrent object related errors."""
class RemoteUploadError(TorrentoolException):
"""Base class for upload to remotes related issues."""
class RemoteDownloadError(TorrentoolException):
"""Base class for issues related to downloads from remotes."""