<s> """<STR_LIT>""" <EOL> import warnings <EOL> class KayleeError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class KayleeProjectAssertError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class InvalidNodeIDError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , node_id ) : <EOL> KayleeError . __init__ ( self , '<STR_LIT>' . format ( node_id ) ) <EOL> class NodeNotSubscribedError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , node ) : <EOL> KayleeError . __init__ ( self , '<STR_LIT>' . format ( node ) ) <EOL> class InvalidResultError ( ValueError , KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , result , why = '<STR_LIT>' ) : <EOL> super ( InvalidResultError , self ) . __init__ ( <EOL> '<STR_LIT>' . format ( result , why ) ) <EOL> class NoneResultAssertError ( KayleeProjectAssertError , ValueError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , result ) : <EOL> super ( NoneResultAssertError , self ) . __init__ ( <EOL> '<STR_LIT>' . format ( result ) ) <EOL> class NodeRequestRejectedError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , message ) : <EOL> KayleeError . __init__ ( self , ( '<STR_LIT>' <EOL> . format ( message ) ) ) <EOL> class ApplicationCompletedError ( NodeRequestRejectedError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , application ) : <EOL> self . application = application <EOL> super ( ApplicationCompletedError , self ) . __init__ ( <EOL> '<STR_LIT>' <EOL> . format ( application . name ) ) <EOL> class SettingsError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , message ) : <EOL> super ( SettingsError , self ) . __init__ ( <EOL> '<STR_LIT>' + message ) <EOL> class SessionKeyNameError ( KayleeError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , why ) : <EOL> KayleeError . __init__ ( self , '<STR_LIT>' . format ( why ) ) <EOL> class KayleeWarning ( UserWarning ) : <EOL> pass <EOL> def warn ( message ) : <EOL> warnings . warn ( message , KayleeWarning , <NUM_LIT:3> ) </s>
