codecombat/scripts/devSetup/errors.py
2014-01-03 10:32:13 -08:00

19 lines
763 B
Python

__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.")