static CircuitBreakerRule onException(Class<? extends Throwable> exception) {
        return builder().onException(exception).thenFailure();
    }
Returns a newly created {@link CircuitBreakerRule} that will report a {@link Response} as a failure,
if an {@link Exception} is raised and it is an instance of the specified {@code exception}.
core/src/main/java/com/linecorp/armeria/client/circuitbreaker/CircuitBreakerRule.java