Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Handler #23

Open
jtrunick opened this issue Mar 14, 2024 · 2 comments
Open

Exception Handler #23

jtrunick opened this issue Mar 14, 2024 · 2 comments

Comments

@jtrunick
Copy link
Contributor

Being able to specify an exception handler would be very useful for my case.

@sovelten
Copy link
Collaborator

Can you specify what kind of use case you would like to support?

The current expectation is that whenever we use api/eval or equivalent, if any uncaught exception happens within a node, this exception is going to bubble up to the caller, so you could just wrap eval within a try/catch block.

If you want to an exception to be handled in a specific node you can also put the try/catch within the node definition.

@jtrunick
Copy link
Contributor Author

A handler might decide to ignore the error and return a default value, or might collect multiple exceptions and throw them when finished. I'd prefer to centralize that w/o wrapping each node definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants