Package SpecClient :: Module SpecClientError
[hide private]
[frames] | no frames]

Source Code for Module SpecClient.SpecClientError

 1  # 
 2  # Exception class 
 3  # 
4 -class SpecClientError(Exception):
5 - def __init__(self, error = None, err = None):
6 Exception.__init__(self) 7 8 self.error = error 9 self.err = err
10 11
12 - def __str__(self):
13 return (self.error is not None and str(self.error) or '') + (self.err is not None and ' (%s)' % str(self.err) or '')
14 15
16 -class SpecClientTimeoutError(SpecClientError):
17 pass
18 19
20 -class SpecClientNotConnectedError(SpecClientError):
21 pass
22