Forums Register Login

Handling Exceptions within a Runnable

+Pie Number of slices to send: Send
How do you handle exceptions thrown within a Runnable but which you wish to propagate up the chain even beyond the class enclosing the Runnable? I was thinking of using the ExceptionListener, but that does not appear to be appropriate.

Thanks,

Betty
+Pie Number of slices to send: Send
I'm closing this duplicate, which has already been answered here.
It's never done THAT before. Explain it to me tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 529 times.
Similar Threads
casting
exceptions
Comparison between Threads-based scheduling and Timer-based scheduling in Java Thread
Redirect internal server error to custom JSP
ExceptionListener
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:31:31.