Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
1 | # -*- coding: utf-8 -*- |
||
39 | class ProviderAPIError(Exception): |
||
40 | |||
41 | def __init__(self, response, message): |
||
42 | self.response = response |
||
43 | self.message = message |
||
44 | |||
45 | def __str__(self): |
||
46 | return "<ProviderAPIError message:%s response:%r>" % ( |
||
47 | self.message or "Unknown", |
||
48 | self.response.status_code) |
||
49 |