Package com.bitpass.css.misc

Examples of com.bitpass.css.misc.InitableException


        //
        try {
            P_SERVER_URL = props.getProperty( PROP_SERVER_URL ).trim();
        } catch( NullPointerException e ) {
            logger.error( "No SERVER_URL property set in " + PROPERTIES_FILENAME );
            throw new InitableException( "No SERVER_URL property set in " + PROPERTIES_FILENAME );
        }

        //
        // Get the XML-RPC client.
        //
        try {
            if( P_USE_LITE_CLIENT ) {
                client = new XmlRpcClientLite( P_SERVER_URL );
            } else {
                client = new XmlRpcClient( P_SERVER_URL );
            }
        } catch( MalformedURLException e ) {
            logger.error( "Could not connect to " + P_SERVER_URL + ": " + e.toString() );
            throw new InitableException( "Could not connect to " + P_SERVER_URL + ": " + e.toString() );
        }

        // Done.
        logger.info( "BitPassAdapter initialized successfully." );
    }
View Full Code Here

TOP

Related Classes of com.bitpass.css.misc.InitableException

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.