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. For Python 2.7, strings can be input as one of two possible types: system encoded strings or unicode strings.
Parameters: - messageNumber (int) – The index of the message in FME’s ‘messages’ location.
- messageParameters (list[six.string_types]) – The values used to replace the %s patterns in the returned message, where s is an integer >= 0.
Return type: Returns: The mapped message with %s patterns replaced.
Raises: FMEException – An exception is raised if a message is not successfully retrieved.