script.module.gorrent2http/lib/torrent2http/error.py

22 lines
492 B
Python
Raw Normal View History

2015-01-11 08:47:17 +03:00
class Error(Exception):
TORRENT_ERROR = 12
CRASHED = 13
2015-01-11 08:47:17 +03:00
UNKNOWN_PLATFORM = 1
XBMC_HOME_NOT_DEFINED = 2
NOEXEC_FILESYSTEM = 3
REQUEST_ERROR = 5
INVALID_DOWNLOAD_PATH = 6
BIND_ERROR = 7
POPEN_ERROR = 8
PROCESS_ERROR = 9
TIMEOUT = 10
INVALID_FILE_INDEX = 11
def __init__(self, message, code=0, **kwargs):
self.message = message
self.code = code
self.kwargs = kwargs
def __str__(self):
return self.message