code: public static void throwAsIAE(Throwable t, String msg) {
          throwIfRTE(t);
          throwIfError(t);
          throw new IllegalArgumentException(msg, t);
      }
docs: Method that will wrap 't' as an {@link IllegalArgumentException} (and with
  specified message) if it is a checked exception; otherwise (runtime exception or error)
  throw as is.
  
  @param t the Throwable to possibly propagate
  @param msg the detail message