Conditional error/warning

../../../../../_images/error.svg

Raise an error if the supplied predicate function returns True.

See https://docs.python.org/3/tutorial/controlflow.html#lambda-expressions for a description of lambda functions. Have a look at the Data type APIs to see what methods and attributes are available on the data type that you are working with.

Input ports:
in:

<a>

Input

Output ports:
out:

<a>

Output

Configuration:
Predicate function: (predicate)
Error message is printed if this function returns True.
Error message: (error_msg)
Error message to display to the user.
Severity: (error_type)
The level “Error” stops flow execution.
class node_conditional_error.ConditionalError[source]

Example flows