blob: b2bb3edc323a7a551407906edd0bf9b7ac87dce8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Copyright (c) 2016 Egor Tensin <egor@tensin.name>
# This file is part of the "VK scripts" project.
# For details, see https://github.com/egor-tensin/vk-scripts.
# Distributed under the MIT License.
class APIError(RuntimeError):
pass
class InvalidAPIResponseError(APIError):
def __init__(self, response):
super().__init__()
self.response = response
def __str__(self):
return str(self.response)
class APIConnectionError(APIError):
pass
|