// Path: google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java
// public interface Interceptor extends Serializable {
// 
//   enum RetryResult {
//     NO_RETRY,
//     RETRY,
//     CONTINUE_EVALUATION;
//   }
// 
//   /**
//    * This method is called before exception evaluation and could short-circuit the process.
//    *
//    * @param exception the exception that is being evaluated
//    * @return {@link RetryResult} to indicate if the exception should be ignored ( {@link
//    *     RetryResult#RETRY}), propagated ({@link RetryResult#NO_RETRY}), or evaluation should
//    *     proceed ({@link RetryResult#CONTINUE_EVALUATION}).
//    */
//   RetryResult beforeEval(Exception exception);
// 
//   /**
//    * This method is called after the evaluation and could alter its result.
//    *
//    * @param exception the exception that is being evaluated
//    * @param retryResult the result of the evaluation so far
//    * @return {@link RetryResult} to indicate if the exception should be ignored ( {@link
//    *     RetryResult#RETRY}), propagated ({@link RetryResult#NO_RETRY}), or evaluation should
//    *     proceed ({@link RetryResult#CONTINUE_EVALUATION}).
//    */
//   RetryResult afterEval(Exception exception, RetryResult retryResult);
// }


import com.google.api.core.InternalApi;
import com.google.cloud.ExceptionHandler.Interceptor;
        @Override
        public RetryResult afterEval(Exception exception, RetryResult retryResult) {
          return Interceptor.RetryResult.CONTINUE_EVALUATION;
        }

        @Override
        public RetryResult beforeEval(Exception exception) {
          if (exception instanceof BaseServiceException) {
            boolean retriable = ((BaseServiceException) exception).isRetryable();
            return retriable
                ? Interceptor.RetryResult.RETRY
                : Interceptor.RetryResult.CONTINUE_EVALUATION;
          }
          return Interceptor.RetryResult.CONTINUE_EVALUATION;
        }
      };
  public static final ExceptionHandler EXCEPTION_HANDLER =
      ExceptionHandler.newBuilder()
          .abortOn(RuntimeException.class)
          .addInterceptors(EXCEPTION_HANDLER_INTERCEPTOR)
          .build();

  private final OptionsT options;

  @InternalApi("This class should only be extended within google-cloud-java")
  protected BaseService(OptionsT options) {
    this.options = options;
  }

  @Override
// Path: google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java
// public interface Interceptor extends Serializable {
// 
//   enum RetryResult {
//     NO_RETRY,
//     RETRY,
//     CONTINUE_EVALUATION;
//   }
// 
//   /**
//    * This method is called before exception evaluation and could short-circuit the process.
//    *
//    * @param exception the exception that is being evaluated
//    * @return {@link RetryResult} to indicate if the exception should be ignored ( {@link
//    *     RetryResult#RETRY}), propagated ({@link RetryResult#NO_RETRY}), or evaluation should
//    *     proceed ({@link RetryResult#CONTINUE_EVALUATION}).
//    */
//   RetryResult beforeEval(Exception exception);
// 
//   /**
//    * This method is called after the evaluation and could alter its result.
//    *
//    * @param exception the exception that is being evaluated
//    * @param retryResult the result of the evaluation so far
//    * @return {@link RetryResult} to indicate if the exception should be ignored ( {@link
//    *     RetryResult#RETRY}), propagated ({@link RetryResult#NO_RETRY}), or evaluation should
//    *     proceed ({@link RetryResult#CONTINUE_EVALUATION}).
//    */
//   RetryResult afterEval(Exception exception, RetryResult retryResult);
// }


// Path: google-cloud-core/src/main/java/com/google/cloud/BaseService.java
import com.google.api.core.InternalApi;
import com.google.cloud.ExceptionHandler.Interceptor;

        @Override
        public RetryResult afterEval(Exception exception, RetryResult retryResult) {
          return Interceptor.RetryResult.CONTINUE_EVALUATION;
        }

        @Override
        public RetryResult beforeEval(Exception exception) {
          if (exception instanceof BaseServiceException) {
            boolean retriable = ((BaseServiceException) exception).isRetryable();
            return retriable
                ? Interceptor.RetryResult.RETRY
                : Interceptor.RetryResult.CONTINUE_EVALUATION;
          }
          return Interceptor.RetryResult.CONTINUE_EVALUATION;
        }
      };
  public static final ExceptionHandler EXCEPTION_HANDLER =
      ExceptionHandler.newBuilder()
          .abortOn(RuntimeException.class)
          .addInterceptors(EXCEPTION_HANDLER_INTERCEPTOR)
          .build();

  private final OptionsT options;

  @InternalApi("This class should only be extended within google-cloud-java")
  protected BaseService(OptionsT options) {
    this.options = options;
  }

  @Override
  public OptionsT getOptions() {