I am currently working on a big project (multiples sources files). I would like to fix an abnormal behavior by adding a function execution before the program's stop with exception (I mean I have to add this fonctionnality into a lots of existing functions). Is-it a simple solution (avoiding adding a line for each function) to force the execution ?
thanks a lot
You can use addShutdownHook method.