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

Allow intercepting exceptions thrown by miranum workers #472

Open
lmoesle opened this issue Sep 10, 2024 · 0 comments
Open

Allow intercepting exceptions thrown by miranum workers #472

lmoesle opened this issue Sep 10, 2024 · 0 comments
Assignees

Comments

@lmoesle
Copy link
Member

lmoesle commented Sep 10, 2024

Is your feature request related to a problem? Please describe

I develop an application that writes for every interaction events to a database. In case of an error an error event is written to the database. It would be nice to intercept the miranum worker execution in case of an error and add my custom logic to execution chain.
At the moment I have to catch every exception, run the database operation and rethrow the exception again for miranum to work properly.

Describe the solution you'd like

Similar to the miranum worker interceptors I would like to intercept exceptions my code throw. I am thinking of something like the @ExceptionHandler annotation in spring rest.

This could be very useful in case of generic errors I would like to handle always the same way.

Additional context

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

3 participants