codecombat/scripts/devSetup/errors.py

20 lines
763 B
Python
Raw Normal View History

2014-01-03 13:32:13 -05:00
__author__ = u'schmatz'
#TODO: Clean these up
class CoCoError(Exception):
def __init__(self,details):
self.details = details
def __str__(self):
return repr(self.details + u"\n Please contact CodeCombat support, and include this error in your message.")
class NotSupportedError(CoCoError):
def __init__(self,details):
self.details = details
def __str__(self):
return repr(self.details + u"\n Please contact CodeCombat support, and include this error in your message.")
class DownloadCorruptionError(CoCoError):
def __init__(self,details):
self.details = details
def __str__(self):
return repr(self.details + u"\n Please contact CodeCombat support, and include this error in your message.")