def _error_code_to_str(mod, type_, code):
 (_, c_name) = _get_error_names(mod, type_, code)
 return ('%s(%d)' % (c_name, code))

def _error_code_to_str ( mod , type_ , code ) : ( _ , c_name ) = _get_error_names ( mod , type_ , code ) return ( '%s(%d)' % ( c_name , code ) )
this method is registered as ofp_error_code_to_str method into ryu .