1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/examples/common/catch/1 example.json
2020-05-02 00:18:24 +09:00

1 line
1.3 KiB
JSON

[{"id":"d1073c30.cb321","type":"inject","z":"f7ca1653.2d17b8","name":"","topic":"","payload":"Hello, World!","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":160,"wires":[["7bab9134.35ad"]]},{"id":"f96f0ba7.cfe008","type":"debug","z":"f7ca1653.2d17b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":550,"y":200,"wires":[]},{"id":"3ea03953.25a1a6","type":"comment","z":"f7ca1653.2d17b8","name":"Example: Catch Node","info":"Catch node can catch error caused by specified nodes or all nodes in a flow. It receives input of target node.","x":160,"y":60,"wires":[]},{"id":"d6a15623.056d18","type":"comment","z":"f7ca1653.2d17b8","name":"Catch error of a node","info":"","x":200,"y":120,"wires":[]},{"id":"7e1c072c.bc1cc8","type":"comment","z":"f7ca1653.2d17b8","name":"Catch error caused by function node","info":"","x":480,"y":240,"wires":[]},{"id":"b45ca54e.eca208","type":"catch","z":"f7ca1653.2d17b8","name":"","scope":["7bab9134.35ad"],"uncaught":false,"x":400,"y":200,"wires":[["f96f0ba7.cfe008"]]},{"id":"7bab9134.35ad","type":"function","z":"f7ca1653.2d17b8","name":"Error","func":"throw new Error(\"Error Occured!\")","outputs":0,"noerr":0,"x":390,"y":160,"wires":[]}]