parameters: ()
docstring: Assert that error codes are unique.
docstring_summary: Assert that error codes are unique.
docstring_tokens: Assert that error codes are unique .
function: def _assert_unique_error_messages():
      # type: () -> None
      """Assert that error codes are unique."""
      error_ids = []
      for module_member in inspect.getmembers(sys.modules[__name__]):
          if module_member[0].startswith("ERROR_ID"):
              error_ids.append(module_member[1])
  
      error_ids_set = set(error_ids)
      if len(error_ids) != len(error_ids_set):
          raise IDLError("IDL error codes prefixed with ERRROR_ID are not unique.")
function_tokens: def _assert_unique_error_messages ( ) : # type: () -> None error_ids = [ ] for module_member in inspect . getmembers ( sys . modules [ __name__ ] ) : if module_member [ 0 ] . startswith ( "ERROR_ID" ) : error_ids . append ( module_member [ 1 ] ) error_ids_set = set ( error_ids ) if len ( error_ids ) != len ( error_ids_set ) : raise IDLError ( "IDL error codes prefixed with ERRROR_ID are not unique." )