aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/vk/error.py
blob: b80db4ea176a15257408a45782f1c960dc66dc69 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                           
# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
# This file is licensed under the terms of the MIT License.
# See LICENSE.txt for details.

class APIError(RuntimeError):
    pass

class InvalidResponseError(APIError):
    def __init__(self, response):
        self.response = response

    def __str__(self):
        return str(self.response)

class ConnectionError(APIError):
    pass