Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I handle errors and exceptions during execution of the node model?

0
Posted

How do I handle errors and exceptions during execution of the node model?

0

There are basically two ways to handle exceptions and errors occurred during execution: • If the error is severe that no data can be provided at the outport throw an exception. Then the node stays unexecuted and an error icon with the message of that exception is displayed. • If something unusual happened or you want to inform the user about some implicitly made decisions you can set a warning with setWarningMessage(String message) in the execute method. The node will be executed but with a warning icon displaying the text of the warning.

0

There are basically two ways to handle exceptions and errors occurred during execution: • If the error is so severe that no data can be provided at the outport, throw an exception. Then the node stays unexecuted and an error icon with the message of that exception is displayed. • If something unusual happened or you want to inform the user about some implicitly made decisions you can set a warning with setWarningMessage(String message) in the execute method. The node will be executed but with a warning icon displaying the text of the warning.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123