Error Handling
TODO: Elaborate
- Error Handling
- 3 ways to handle errors
- Set a main output to none: Happens when the node is unable to generate this output (e.g. when inputs are not available or there was a temporary error inside of the node)
- Recoverable, expected to be resolved in the next cycle
- Return
Err(...)
fromcycle()
- Unrecoverable, but framework is allowed to shutdown gracefully, expected that it will not improve in the next cycles/in the future
- Panic with e.g.
panic!()
or byunwrap()
ing- Unrecoverable, immediate shutdown, kernel will take down the whole process, there is no way to gracefully shutdown
- Set a main output to none: Happens when the node is unable to generate this output (e.g. when inputs are not available or there was a temporary error inside of the node)
- 3 ways to handle errors