You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developing-flows/flow-structure.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,3 +98,18 @@ The same approach can be used when the flows might run on different operating sy
98
98
99
99
The Inject and Change nodes are able to access environment variables using either the "env" option in their TypedInput. The Function node can use the `env.get()` function.
100
100
101
+
### Error handling
102
+
103
+
Node-RED provides the Catch and Status nodes as ways of building flows that can respond to errors. For more information about how they can be used, refer to the [user guide](/docs/user-guide/handling-errors).
104
+
105
+
As there is no direct visual association between a Catch node and the nodes it targets, you should consider how to position them in order to keep the flows readable.
106
+
107
+
Placing them close to the parts of the flow they correspond to can help, but you should take care not cause your flows to be come overcrowded.
108
+
109
+
Although approach is to group all of the error handling flows below the main flow - making the 'good' path clearly distinct from the error paths.
110
+
111
+
Giving your Catch nodes a clear name is also very important to help easily identify the scenarios they are intended to handle.
112
+
113
+
Which ever approach you choose, try to be consistent across your different flows.
0 commit comments