@Override
    public void doOnException(Throwable e) {
        if (rpcFuture == null) {
            return;
        }
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        try {
            Thread.currentThread().setContextClassLoader(this.classLoader);
            RpcInternalContext.setContext(context);
            rpcFuture.setFailure(e);
        } finally {
            Thread.currentThread().setContextClassLoader(cl);
            RpcInvokeContext.removeContext();
            RpcInternalContext.removeAllContext();
        }
    }
Instantiates a new SyncInvokeClientHandler.

@param consumerConfig the consumer config
@param providerInfo   the provider info
@param rpcFuture      the rpc future
@param request        the request
@param context        the context
@param classLoader    the class loader
remoting/remoting-http/src/main/java/com/alipay/sofa/rpc/transport/http/SyncInvokeClientHandler.java