Torrent Download:
- Supporta solo Film - Monitor di Download - Rinominazione dei file alla fine del download
This commit is contained in:
27
lib/torrentool/exceptions.py
Normal file
27
lib/torrentool/exceptions.py
Normal 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."""
|
||||
Reference in New Issue
Block a user