class CompoundInterceptor implements Interceptor {

    @Override
    public HttpResponse<?> onFail(Exception e, HttpRequestSummary request, Config config) throws UnirestException {
        return  interceptors.stream()
                .map(i -> Optional.ofNullable(i.onFail(e, request, config)))
                .flatMap(Util::stream)
                .findFirst()
                .orElseThrow(() -> new UnirestException(e));
    }

      CompoundInterceptor();
      CompoundInterceptor(List<Interceptor> interceptors);

}