@Test public void noMatches() { RetryLimitReachedException exception = new RetryLimitReachedException( ImmutableList.of(RUNTIME, ATLAS_DEPENDENCY, GENERIC)); Assertions.assertThat(exception.suppressed(IllegalStateException.class)).isFalse(); }
public <E extends Exception> boolean suppressed(Class<E> type) { return Arrays.stream(getSuppressed()).anyMatch(type::isInstance); }
RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable { public <E extends Exception> boolean suppressed(Class<E> type) { return Arrays.stream(getSuppressed()).anyMatch(type::isInstance); } }
RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable { public <E extends Exception> boolean suppressed(Class<E> type) { return Arrays.stream(getSuppressed()).anyMatch(type::isInstance); } RetryLimitReachedException(List<Exception> exceptions); }
RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable { public <E extends Exception> boolean suppressed(Class<E> type) { return Arrays.stream(getSuppressed()).anyMatch(type::isInstance); } RetryLimitReachedException(List<Exception> exceptions); boolean suppressed(Class<E> type); @Override String getLogMessage(); @Override List<Arg<?>> getArgs(); }
RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable { public <E extends Exception> boolean suppressed(Class<E> type) { return Arrays.stream(getSuppressed()).anyMatch(type::isInstance); } RetryLimitReachedException(List<Exception> exceptions); boolean suppressed(Class<E> type); @Override String getLogMessage(); @Override List<Arg<?>> getArgs();  }