Package com.lixia.rdp

Examples of com.lixia.rdp.ConnectionException


            SecureLayer.connect(server);
            this.connected = true;
            rdp_send_client_info(connect_flags, domain, username, password, command, directory);
        } // Handle an unresolvable hostname
        catch (UnknownHostException e) {
            throw new ConnectionException("Could not resolve host name: " + server);
        } // Handle a refused connection
        catch (ConnectException e) {
            throw new ConnectionException("Connection refused when trying to connect to " + server + " on port " + RDPConnection.conf.port);
        } // Handle a timeout on connecting
        catch (NoRouteToHostException e) {
            throw new ConnectionException("Connection timed out when attempting to connect to " + server);
        } catch (IOException e) {
            throw new ConnectionException("Connection Failed");
        } catch (RdesktopException ex) {
            java.util.logging.Logger.getLogger(ARDP5.class.getName()).log(Level.SEVERE, null, ex);
        } catch (CryptoException ex) {
            java.util.logging.Logger.getLogger(ARDP5.class.getName()).log(Level.SEVERE, null, ex);
        } catch (OrderException ex) {
View Full Code Here

TOP

Related Classes of com.lixia.rdp.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.