fmeobjects.FMELogFile.getMessage

FMELogFile.getMessage(messageNumber, messageParameters)

This method returns the message mapped from ‘messageNumber’ in FME_HOME/messages/fmemessages.fms. The mapped message has all its %s replaced by the value in ‘messageParameters’ indexed at s, where s is an integer >= 0.

Parameters:
  • messageNumber (int) – The index of the message in FME’s ‘messages’ location.

  • messageParameters (list[str]) – The values used to replace the %s patterns in the returned message, where s is an integer >= 0.

Return type:

str

Returns:

The mapped message with %s patterns replaced.

Raises:

FMEException – An exception is raised if a message is not successfully retrieved.