aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/vk/error.py
blob: 41824490a22f5ad27f87702a3bb75c488c872f1a (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                           
                                        
                                 
                          




                                 
                                   
        
# 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 InvalidAPIResponseError(APIError):
    def __init__(self, response):
        super().__init__()
        self.response = response

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

class APIConnectionError(APIError):
    pass