public static String doIgnore(Throwable t,String m){
  if (ignorePatterns == null || m == null)   return null;
  if (t != null && t instanceof AssertionError)   return null;
  for (  String regex : ignorePatterns) {
    Pattern pattern=Pattern.compile(regex);
    Matcher matcher=pattern.matcher(m);
    if (matcher.find())     return "Ignoring exception matching " + regex;
  }
  return null;
}

public static String doIgnore ( Throwable t , String m ) { if ( ignorePatterns == null || m == null ) return null ; if ( t != null && t instanceof AssertionError ) return null ; for ( String regex : ignorePatterns ) { Pattern pattern = Pattern . compile ( regex ) ; Matcher matcher = pattern . matcher ( m ) ; if ( matcher . find ( ) ) return "Ignoring exception matching " + regex ; } return null ; }
returns null if this exception does not match any ignore patterns , or a message string to use if it does .
