Namespace: MSG

MSG

Global object with utilities related to messages. This object is only available in build variant scripts that run in the context of the model compiler.

Methods

(static) formatError(msg, …argsopt)

Prints an error message when model compiler is loading TCs for build. It will add a message with error severity to model compiler message list and will hence cause termination of the model compiler with error status. When model compiler is executed in the context of the {{DOC_PRODUCT}} user interface the messages will appear in the UML Development console where model compiler build log is usually printed.
Parameters:
Name Type Attributes Description
msg string Message to be printed
args object <optional>
<repeatable>
Arguments that matches placeholders in the msg string. The type of the argument should match the type of placeholder, for example %s for string etc.

(static) formatInfo(msg, …argsopt)

Prints an informational message as a regular model compiler message with information severity when model compiler is loading TCs for build. When executed in the context of the {{DOC_PRODUCT}} user interface the message will appear in the UML Development console where model compiler build log is usually printed.
Parameters:
Name Type Attributes Description
msg string Message to be printed
args object <optional>
<repeatable>
Arguments that matches placeholders in the msg string. The type of the argument should match the type of placeholder, for example %s for string etc.

(static) formatWarning(msg, …argsopt)

Prints a warning message as a regular model compiler message with warning severity when model compiler is loading TCs for build. When executed in the context of the {{DOC_PRODUCT}} user interface the message will appear in the UML Development console where model compiler build log is usually printed.
Parameters:
Name Type Attributes Description
msg string Message to be printed
args object <optional>
<repeatable>
Arguments that matches placeholders in the msg string. The type of the argument should match the type of placeholder, for example %s for string etc.