Package com.github.restdriver.clientdriver.exception

Examples of com.github.restdriver.clientdriver.exception.ClientDriverInternalException


     */
    public void shutdownQuietly() {
        try {
            jettyServer.stop();
        } catch (Exception e) {
            throw new ClientDriverInternalException("Error shutting down jetty", e);
        } finally {
            completed();
        }
    }
View Full Code Here


           
            try {
                response.getDelayTimeUnit().sleep(response.getDelayTime());
               
            } catch (InterruptedException ie) {
                throw new ClientDriverInternalException("Requested delay was interrupted", ie);
            }
           
        }
       
    }
View Full Code Here

   
    private void waitFor(long time) {
        try {
            Thread.sleep(time);
        } catch (InterruptedException ie) {
            throw new ClientDriverInternalException("Waiting for requests was interrupted", ie);
        }
    }
View Full Code Here

        if (bodyCapture instanceof LatchBodyCapture) {
            try {
                ((LatchBodyCapture<?>) bodyCapture).getLatch().await(time,
                        timeUnit);
            } catch (InterruptedException e) {
                throw new ClientDriverInternalException("Interrupted waiting for capture", e);
            }
        } else {
            long waitUntil = System.currentTimeMillis() + timeUnit.toMillis(time);
           
            while (waitUntil > System.currentTimeMillis()) {
                if (bodyCapture.getContent() != null) {
                    break;
                }
               
                try {
                    Thread.sleep(500);
                } catch (InterruptedException e) {
                    throw new ClientDriverInternalException("Interrupted waiting for capture", e);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.github.restdriver.clientdriver.exception.ClientDriverInternalException

Copyright © 2018 www.massapicom. 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.