import six

class AppError(Exception):
    """App exception"""

    def __init__(self, reason, response=None):
        self.reason = six.text_type(reason)
        self.response = response
        Exception.__init__(self, reason)

    def __str__(self):
        return self.reason


Add class to raise app exceptions
Add class to raise app exceptions
