I have a requirement of exception handling for all methods, suppose that I have a project and within the project, the StaleStateException is thrown, and I need to handle it, I want to do it like this:
class Util() {
    public static void handle(XXXX method) {
        try{
            //invoke method
        } catch(StaleStateException e) {
            //do something
        }
    }
}
How can I implement this method?
 
     
     
    