Fix Download Torrent

This commit is contained in:
Alhaziel01
2021-11-03 19:18:11 +01:00
parent df6f3f1177
commit 05102262ca
13 changed files with 879 additions and 12 deletions
+27
View File
@@ -0,0 +1,27 @@
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."""