My purpose is creating a Java library which listens and store all errors. I have caught every uncaught exception via Thread#UncaughtExceptionHandler,
but when Java code has try and catch block inside the code and is not throwing exception explicitly at that time above UncaughtExceptionHandler will not work.
Ultimately what I want is a mechanism to record all caught and uncaught exceptions.