#NEWLINE# def get_rc_exc( rc ) : #NEWLINE# #INDENT# rc = int ( rc ) #NEWLINE# try : #NEWLINE# #INDENT# return rc_exc_cache [ rc ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# name = ( 'ErrorReturnCode_%d' % rc ) #NEWLINE# exc = type ( exc , ( ErrorReturnCode , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# rc_exc_cache [ rc ] = exc #NEWLINE# return exc