1
2
3 __author__ = "Abhinav Sarkar <abhinav@abhinavsarkar.net>"
4 __version__ = "0.2"
5 __license__ = "GNU Lesser General Public License"
8 """Base class for Lastfm errors"""
9 - def __init__(self,
10 message = None,
11 code = None):
15
16 @property
19
20 @property
23
26
28 pass
29
31 pass
32
34 pass
35
37 pass
38
40 pass
41
43 pass
44
46 pass
47
49 pass
50
52 pass
53
55 pass
56
58 pass
59
61 pass
62
64 pass
65
67 pass
68
69 error_map = {
70 1: LastfmError,
71 2: InvalidServiceError,
72 3: InvalidMethodError,
73 4: AuthenticationFailedError,
74 5: InvalidFormatError,
75 6: InvalidParametersError,
76 7: InvalidResourceError,
77 8: OperationFailedError,
78 9: InvalidSessionKeyError,
79 10: InvalidApiKeyError,
80 11: ServiceOfflineError,
81 12: SubscribersOnlyError,
82 13: InvalidMethodSignatureError,
83 14: TokenNotAuthorizedError,
84 15: TokenExpiredError,
85 }
86