Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Detail field of the Log Message will contain a list of the current values of any Attributes, Pipes and $-Variables which are relevant in the context of the Expression.


Syntax

error(message)

ArgumentTypeDescription
messageStringA message to appear in the Log. Note that this could be an Expression.

Examples

This example adds a message to the Log if no rate is found.

Code Block
ifNull ( in.rate, error("Missing rate") )


This example adds a message to the Log if no rate is found.In this example, anĀ error() message is recorded in the log directly before the processing of records is stopped. This is useful where an error message is required in the logs and the processing must stop.

Code Block
ifNull(in.rate,
	do(
		error("Missing rate value")
		stop("Processing being stopped")
	)
)

Insert excerpt
stop
stop
name_processFunctions
nopaneltrue

See Also