#NEWLINE# def getErrorStr( self ) : #NEWLINE# #INDENT# errCodeName = str ( errCodeName . response . status ) #NEWLINE# errCodeVal = constants . command_status_name_map [ errCodeName ] #NEWLINE# errCodeDesc = constants . command_status_value_map [ errCodeVal ] #NEWLINE# return ( '%s (%s)' % ( errCodeName , errCodeDesc ) )