Package com.impetus.kundera.loader

Examples of com.impetus.kundera.loader.ClientLoaderException


    }

    @Test
    public void testClientLoaderException()
    {
        ClientLoaderException exception = new ClientLoaderException("Error with string");
        Assert.assertNotNull(exception);
       
        exception = new ClientLoaderException(new RuntimeException());
        Assert.assertNotNull(exception);
   
        exception = new ClientLoaderException("KunderaTests",new RuntimeException());
        Assert.assertNotNull(exception);
       
        exception = new ClientLoaderException();
        Assert.assertNotNull(exception);
    }
View Full Code Here


        }
        else if ((userName != null && password == null) || (userName == null && password != null))
        {
            errMsg = "Invalid configuration provided for authentication, please specify both non-nullable"
                    + " 'kundera.username' and 'kundera.password' properties";
            throw new ClientLoaderException(errMsg);
        }

        if (!authenticate)
        {
            errMsg = "Authentication failed, invalid 'kundera.username' :" + userName + "and 'kundera.password' :"
View Full Code Here

            logger.info("Connected to mongodb at " + contactNode + " on port " + defaultPort);
        }
        catch (NumberFormatException e)
        {
            logger.error("Invalid format for MONGODB port, Unale to connect!" + "; Caused by:" + e.getMessage());
            throw new ClientLoaderException(e);
        }
        catch (UnknownHostException e)
        {
            logger.error("Unable to connect to MONGODB at host " + contactNode + "; Caused by:" + e.getMessage());
            throw new ClientLoaderException(e);
        }
        catch (MongoException e)
        {
            logger.error("Unable to connect to MONGODB; Caused by:" + e.getMessage());
            throw new ClientLoaderException(e);
        }

        DB mongoDB = mongo.getDB(keyspace);

        try
View Full Code Here

TOP

Related Classes of com.impetus.kundera.loader.ClientLoaderException

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.