Conditional error/warning¶
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.
Ports:
Inputs:
in: <a>
Input
Outputs:
out: <a>
Output
Configuration:
- predicate
- Error message is printed if this function returns True.
- error_msg
- Error message to display to the user.
- error_type
- The level “Error” stops flow execution.