### Question:
Retry implements BusinessOperation<T> { public List<Exception> errors() { return Collections.unmodifiableList(this.errors); } @SafeVarargs  Retry(
      BusinessOperation<T> op,
      int maxAttempts,
      long delay,
      Predicate<Exception>... ignoreTests
  ); List<Exception> errors(); int attempts(); @Override T perform();  }### Answer:
@Test public void errors() { final var e = new BusinessException("unhandled"); final var retry = new Retry<String>( () -> { throw e; }, 2, 0 ); try { retry.perform(); } catch (BusinessException ex) { } assertThat(retry.errors(), hasItem(e)); }