Conditional error/warning¶
Raise an error if a predicate is True.
Documentation¶
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.
Definition¶
Input ports¶
- in <a>
Input
Output ports¶
- out <a>
Output
Configuration¶
- Error message: (error_msg)
Error message to display to the user.
- Severity: (error_type)
The level “Error” stops flow execution.
- Predicate function: (predicate)
Error message is printed if this function returns True.
Examples¶
Implementation¶
- class node_conditional_error.ConditionalError[source]