<s> """<STR_LIT>""" <EOL> from django . conf import settings <EOL> class ComradeError ( Exception ) : <EOL> def __init__ ( self , reason ) : <EOL> super ( ComradeError , self ) . __init__ ( ) <EOL> self . reason = reason <EOL> self . name = '<STR_LIT>' <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . name , self . reason ) <EOL> def __repr__ ( self ) : <EOL> return self . __unicode__ ( ) <EOL> def __str__ ( self ) : <EOL> return self . __unicode__ ( ) <EOL> class BadRequestError ( ComradeError ) : <EOL> def __init__ ( self , reason ) : <EOL> super ( BadRequestError , self ) . __init__ ( reason ) <EOL> self . name = '<STR_LIT>' <EOL> class HttpResponseError ( ComradeError ) : <EOL> def __init__ ( self , reason , url , response ) : <EOL> super ( HttpResponseError , self ) . __init__ ( reason ) <EOL> self . name = '<STR_LIT>' <EOL> self . url = url <EOL> self . response = response <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . name , self . reason , <EOL> self . url , self . response ) </s>
