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

Propagate errors from the Plugins to the API #171

Open
maximiliani opened this issue Feb 5, 2025 · 0 comments
Open

Propagate errors from the Plugins to the API #171

maximiliani opened this issue Feb 5, 2025 · 0 comments

Comments

@maximiliani
Copy link
Member

State of the art

Right now, the mapping service always returns a result even, if it does not make sense or contain any information. What happens if a plugin fails (e.g. if a Python error is thrown)? Nothing. That is not sufficient, because errors can (and will) happen in the mapping plugin.

Idea

Propagate the error through all layers of the Mapping Service. Create an opportunity for plugins to throw exceptions that are returned to the consumer via the API. Extra: Implement a boilerplate that deals with Python Exceptions and automatically converts them.

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