code: public static final RetryPolicy retryByException(RetryPolicy defaultPolicy,
                                                     Map<Class<? extends Exception>, RetryPolicy> exceptionToPolicyMap) {
      return new ExceptionDependentRetry(defaultPolicy, exceptionToPolicyMap);
    }
docs: <p>
  Set a default policy with some explicit handlers for specific exceptions.
  </p>