public OutlierDetectingRuleBuilder onException(Class<? extends Throwable> exceptionType,
                                                   OutlierDetectionDecision decision) {
        requireNonNull(exceptionType, "exceptionType");
        requireNonNull(decision, "decision");
        onException((ctx, cause) -> {
            if (exceptionType.isInstance(cause)) {
                return decision;
            }
            return OutlierDetectionDecision.NEXT;
        });
        return this;
    }
Reports the specified {@link OutlierDetectionDecision} if the exception type is raised.
core/src/main/java/com/linecorp/armeria/common/outlier/OutlierDetectingRuleBuilder.java