Package ch.aonyx.broker.ib.api.net

Examples of ch.aonyx.broker.ib.api.net.ConnectionException


        try {
            socket = new Socket(connectionParameters.getHost(), connectionParameters.getPort());
            callback.onSuccess(new SocketSession(socket, connectionParameters.getClientId(), clientCallback));
        } catch (final UnknownHostException e) {
            LOGGER.error("", e);
            callback.onFailure(new ConnectionException(ClientMessageCode.CONNECTION_ERROR, "Unknown host "
                    + e.getMessage()));
        } catch (final IOException e) {
            LOGGER.error("", e);
            callback.onFailure(new ConnectionException(ClientMessageCode.CONNECTION_FAILURE, e.getMessage()));
        }
    }
View Full Code Here

TOP

Related Classes of ch.aonyx.broker.ib.api.net.ConnectionException

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.