Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1"""LICENSE 

2Copyright 2016 Hermann Krumrey <hermann@krumreyh.com> 

3 

4This file is part of xdcc-dl. 

5 

6xdcc-dl is free software: you can redistribute it and/or modify 

7it under the terms of the GNU General Public License as published by 

8the Free Software Foundation, either version 3 of the License, or 

9(at your option) any later version. 

10 

11xdcc-dl is distributed in the hope that it will be useful, 

12but WITHOUT ANY WARRANTY; without even the implied warranty of 

13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

14GNU General Public License for more details. 

15 

16You should have received a copy of the GNU General Public License 

17along with xdcc-dl. If not, see <http://www.gnu.org/licenses/>. 

18LICENSE""" 

19 

20 

21class InvalidCTCPException(Exception): 

22 """ 

23 Exception thrown when an invalid CTCP DCC message type is received 

24 """ 

25 pass 

26 

27 

28class AlreadyDownloadedException(Exception): 

29 """ 

30 Exception thrown when a file was already downloaded 

31 """ 

32 pass 

33 

34 

35class DownloadCompleted(Exception): 

36 """ 

37 Exception thrown once the download has been completed 

38 """ 

39 pass 

40 

41 

42class DownloadIncomplete(Exception): 

43 """ 

44 Exception thrown if a download did not complete 

45 """ 

46 pass 

47 

48 

49class PackAlreadyRequested(Exception): 

50 """ 

51 Exception raised if a pack was already requested 

52 """ 

53 

54 

55class UnrecoverableError(Exception): 

56 """ 

57 Exception raised when an unrecoverable error occurs 

58 """ 

59 

60 

61class Timeout(UnrecoverableError): 

62 """ 

63 Exception raised when a timeout occurs 

64 """ 

65 

66 

67class BotDoesNotExist(UnrecoverableError): 

68 """ 

69 Exception raised if a bot does not exist 

70 """