public static final boolean isIgnorableIOException(Exception e){
  if (e instanceof ClosedChannelException) {
    return true;
  }
  String msg=e.getMessage();
  if (msg == null) {
    msg=e.toString();
  }
  msg=msg.toLowerCase();
  return (msg.indexOf("forcibly closed") >= 0) || (msg.indexOf("reset by peer") >= 0) || (msg.indexOf("connection reset") >= 0);
}

public static final boolean isIgnorableIOException ( Exception e ) { if ( e instanceof ClosedChannelException ) { return true ; } String msg = e . getMessage ( ) ; if ( msg == null ) { msg = e . toString ( ) ; } msg = msg . toLowerCase ( ) ; return ( msg . indexOf ( "forcibly closed" ) >= 0 ) || ( msg . indexOf ( "reset by peer" ) >= 0 ) || ( msg . indexOf ( "connection reset" ) >= 0 ) ; }
checks to see if an exception should not be logged : i . e . , " forcibly closed " , " reset by peer " , or " connection reset "
