.error and .warning Macros

These macros are used to output errors and warnings during translation. Errors stop generation, while warnings are purely informational and can be triggered when an inconsistency is detected while applying the template on a particular object. The messages are displayed in both the object Preview tab and the Output window.

.error message
.warning message

The following parameters are available:

Parameter

Description

message

Specifies the text of the message.

Type: Simple template

Example
.error no initial value supplied for attribute %Code% of class %Parent.Code%