connect-platform icon indicating copy to clipboard operation
connect-platform copied to clipboard

Proposal for error handling through control outputs

Open must opened this issue 4 years ago • 0 comments

As it stands right now, developers tend to use control outputs to indicate errors which can lead to simply connecting these error control outputs to the node in question and the nodes using it. It would be much cleaner to define these error control outputs which would only add the behavior of them implicitly bubbling up to the nodes higher up in the dependency hierarchy. This can be further customized by allowing the developer to make exceptions for some error control outputs and handle these as they would otherwise have as a normal control output.

Bonus utility: adding error data to the control output for debugging purposes.

Example of how this can make logic unnecessarily complicated. Screenshot 2020-02-29 16 50 07 Screenshot 2020-02-29 16 50 09 Screenshot 2020-02-29 16 50 10 Screenshot 2020-02-29 16 50 13

must avatar Feb 29 '20 15:02 must