@@ -0,0 +1,281 @@
+import six%0A%0Aclass AppError(Exception):%0A    %22%22%22App exception%22%22%22%0A%0A    def __init__(self, reason, response=None):%0A        self.reason = six.text_type(reason)%0A        self.response = response%0A        Exception.__init__(self, reason)%0A%0A    def __str__(self):%0A        return self.reason%0A%0A

Add class to raise app exceptions