ExceptionHandler.newBuilder() .retryOn(IOException.class, NullPointerException.class) .abortOn( RuntimeException.class, ClosedByInterruptException.class,
ExceptionHandler handler = ExceptionHandler.newBuilder() .abortOn(RuntimeException.class) .addInterceptors(DatastoreImpl.EXCEPTION_HANDLER_INTERCEPTOR) .build();
public static ExceptionHandler build() { return ExceptionHandler.newBuilder() .abortOn(RuntimeException.class) .addInterceptors( DatastoreImpl.EXCEPTION_HANDLER_INTERCEPTOR, TRANSACTION_EXCEPTION_HANDLER_INTERCEPTOR) .build(); }
public static ExceptionHandler build() { return ExceptionHandler.newBuilder() .abortOn(RuntimeException.class) .addInterceptors( DatastoreImpl.EXCEPTION_HANDLER_INTERCEPTOR, TRANSACTION_EXCEPTION_HANDLER_INTERCEPTOR) .build(); }