Is there a way to get notified about every single exception that is thrown during runtime (handled and unhandled)?
What I want is a logger mechanism that logs every exception that comes up while my program is running. I don't want to handle the exceptions with this logger, I just want to be able to log the event of an exception being thrown.
The thing is that I want to include all system exceptions as well therefore it is not possible to call a function whenever I throw a new exception...
I have read something about ExceptionListener
but they seem to be intended for a different job.
Has anyone an idea how this would be possible?