public static void interruptedException ( String msg , InterruptedException e ) throws IOException { Thread . currentThread ( ) . interrupt ( ) ; LOG . error ( msg , e ) ; throw new IOException ( msg , e ) ; }
Interrupt the thread and then log and re - throw an InterruptedException as an IOException .