In one of my method , interrupted exception and execution exception is coming. I put in try catch like this.
try{
//my code
}catch(InterruptedException|ExecutionException e)
Log.error(" logging it");
throw new MonitoringException("it failed" , e)
//monitoringexception extends RunTimeException
Also in my method I put throws InterruptedException,ExecutionException
I am getting below critical error in sonar - Either re-interrupt this method or rethrow the "InterruptedException
"
Anyone know how to fix this.
Please help immediately.