<s> class LostRemote ( Exception ) : <EOL> pass <EOL> class TimeoutExpired ( Exception ) : <EOL> def __init__ ( self , timeout_s , when = None ) : <EOL> msg = '<STR_LIT>' . format ( timeout_s ) <EOL> if when : <EOL> msg = '<STR_LIT>' . format ( msg , when ) <EOL> super ( TimeoutExpired , self ) . __init__ ( msg ) <EOL> class RemoteError ( Exception ) : <EOL> def __init__ ( self , name , human_msg , human_traceback ) : <EOL> self . name = name <EOL> self . msg = human_msg <EOL> self . traceback = human_traceback <EOL> def __str__ ( self ) : <EOL> if self . traceback is not None : <EOL> return self . traceback <EOL> return '<STR_LIT>' . format ( self . name , self . msg ) </s>
