fatalError(message)

The fatalError() function triggers a fatal error that aborts content creation.

message

A string.

When a script calls this function in Preview mode, the script that triggers it is marked with an error icon in the Scripts pane, and the given message is displayed in a hint.

When generating output from the Designer, the Designer will log the error and display an error dialog with the given message. Content creation is aborted.

Note: Errors thrown in a try statement do not abort content creation. Content creation will continue with the next script, the same record.