Package java.net

Examples of java.net.SocketTimeoutException.initCause()


            NettyResponseFuture<?, ?> nettyResponseFuture = (NettyResponseFuture<?, ?>) context.getAttachment();

            if (nettyResponseFuture != null) {
                if (cause instanceof ReadTimeoutException) {
                    SocketTimeoutException socketTimeoutException = new SocketTimeoutException("Read timeout");
                    socketTimeoutException.initCause(cause);
                    cause = socketTimeoutException;
                }
                if (cause == null) {
                    cause = new UnknownRequestException();
                }
View Full Code Here


        Future<HttpResponseMessage> response = start(request, httpParameters);
        try {
            return response.get(timeout, TimeUnit.MILLISECONDS);
        } catch (TimeoutException e) {
            IOException e2 = new SocketTimeoutException("no response after " + timeout + " msec");
            e2.initCause(e);
            throw e2;
        } catch (InterruptedException e) {
            IOException e2 = new InterruptedIOException(e.getMessage());
            e2.initCause(e);
            throw e2;
View Full Code Here

            IOException e2 = new SocketTimeoutException("no response after " + timeout + " msec");
            e2.initCause(e);
            throw e2;
        } catch (InterruptedException e) {
            IOException e2 = new InterruptedIOException(e.getMessage());
            e2.initCause(e);
            throw e2;
        } catch (ExecutionException e) {
            throw wrap(e.getCause());
        } catch (Exception e) {
            throw wrap(e);
View Full Code Here

            NettyResponseFuture<?, ?> nettyResponseFuture = (NettyResponseFuture<?, ?>) context.getAttachment();

            if (nettyResponseFuture != null) {
                if (cause instanceof ReadTimeoutException) {
                    SocketTimeoutException socketTimeoutException = new SocketTimeoutException("Read timeout");
                    socketTimeoutException.initCause(cause);
                    cause = socketTimeoutException;
                }
                if (cause == null) {
                    cause = new UnknownRequestException();
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.