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

Uncaught Exception Handling #31

Open
derekm opened this issue Apr 5, 2018 · 1 comment
Open

Uncaught Exception Handling #31

derekm opened this issue Apr 5, 2018 · 1 comment

Comments

@derekm
Copy link

derekm commented Apr 5, 2018

I don't know how this would be done, but some kind of exception logger for uncaught exceptions would be handy.

I think DeltaSpike has something for handling exceptions globally, but I wanted to ping this project for ideas.

@t1
Copy link
Owner

t1 commented Apr 6, 2018

There's Thread#setUncaughtExceptionHandler and Thread#setDefaultUncaughtExceptionHandler to do that, but in a CDI environment, I think this would already be set up by the container, i.e. by JEE, and while it may be easy to wrap the default handler, I don't think we can wrap the per-thread handler, as we don't get notified when the container creates a new thread.

What exactly do you need, and in what environment are you running your code?

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