How do I handle errors and exceptions during execution of the node model?
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.
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.