Please catch Throwable in a task submitted to a thread pool
Exceptions thrown in a task submitted to a thread pool will just disappear. You won’t even see the log. You can catch java.lang.Exception and handle it. But to make things even better, please catch java.lang.Throwable instead. In theory, it’s not recommended to catch a Throwable. But to be pragmatic, it’s important for you to see …
Please catch Throwable in a task submitted to a thread pool Read More »