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

Provide a way to recover error types from UDFs #452

Open
sadderchris opened this issue Mar 13, 2024 · 0 comments
Open

Provide a way to recover error types from UDFs #452

sadderchris opened this issue Mar 13, 2024 · 0 comments

Comments

@sadderchris
Copy link

Currently, the UDF API returns a Box<dyn Error> to indicate failure. This is fine if you don't need to inspect errors once they come out of the PLR evaluator. However, it makes it really difficult to map errors that occurred inside a UDF to an external error type (since all type information is lost).

It would be nice to provide a way to recover the error type (e.g. via downcasting), like anyhow, or just adopting anyhow wholesale as the error type.

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

1 participant