1 '''Error classes.
2 '''
3
5 '''Exception raised whenever there is a problem with connection between Skype4Py and Skype client.
6 It can be subscripted in which case following information can be obtained::
7
8 Index | Meaning
9 ------+-------------------------------------------------------------------------------
10 0 | (unicode) Error description string.
11 '''
12
14 '''__init__.
15
16 @param errstr: Error description.
17 @type errstr: unicode
18 '''
19 Exception.__init__(self, str(errstr))
20
21
23 '''Raised whenever Skype client reports an error back to Skype4Py. It can be subscripted in which
24 case following information can be obtained::
25
26 Index | Meaning
27 ------+-------------------------------------------------------------------------------
28 0 | (int) Error number. See below.
29 1 | (unicode) Error description string.
30
31 See U{Error codes<https://developer.skype.com/Docs/ApiDoc/Error_codes>} for more information
32 about Skype error code numbers. Additionally error code 0 can be raised by Skype4Py itself.
33 '''
34
36 '''__init__.
37
38 @param errno: Error number.
39 @type errno: int
40 @param errstr: Error description.
41 @type errstr: unicode
42 '''
43 Exception.__init__(self, int(errno), str(errstr))
44
46 return '[Errno %d] %s' % (self[0], self[1])
47