Examples of InvalidConfigurationException


Examples of com.amazonaws.services.cognitosync.model.InvalidConfigurationException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        InvalidConfigurationException e = (InvalidConfigurationException)super.unmarshall(json);
        e.setErrorCode("InvalidConfigurationException");

        return e;
    }
View Full Code Here

Examples of com.cloudloop.config.exceptions.InvalidConfigurationException

    File rootDir = _cloudStore.getRootDirectory( );
    for (String restrictionPattern : RESTRICTED_ROOT_DIRS)
    {
      if (rootDir.getAbsolutePath( ).matches( restrictionPattern ))
      {
        throw new InvalidConfigurationException(
            "Integration tests are configured to use '"
                + rootDir.getAbsolutePath( )
                + "' as the root directory. "
                + "This is a restricted directory that should not be used"
                + " for testing (the contents of this directory will be deleted)."
View Full Code Here

Examples of com.google.caliper.config.InvalidConfigurationException

      this.resultFile = new File(config.options().get("file"));
      logger.finer("found an output file in the configuration");
    } else if (config.options().containsKey("dir")) {
      File dir = new File(config.options().get("dir"));
      if (dir.isFile()) {
        throw new InvalidConfigurationException("specified a directory, but it's a file");
      }
      this.resultFile = new File(dir, createFileName(benchmarkClass.name()));
      logger.finer("found an output directory in the configuration");
    } else {
      this.resultFile =
View Full Code Here

Examples of com.impetus.kundera.utils.InvalidConfigurationException

    }
   
    @Test
    public void testInvalidConfigurationException()
    {
        InvalidConfigurationException exception = new InvalidConfigurationException("Error with string");
        Assert.assertNotNull(exception);
   

        exception = new InvalidConfigurationException(new RuntimeException());
        Assert.assertNotNull(exception);
       
        exception = new InvalidConfigurationException();
        Assert.assertNotNull(exception);       
       
        exception = new InvalidConfigurationException("Error with string", new RuntimeException());
        Assert.assertNotNull(exception);
    }
View Full Code Here

Examples of dev.db.biz.configuration.property.ex.InvalidConfigurationException

    if( value != null ) {
      return value;
    } else if( value == null && defaultValue != null ) {
      return defaultValue;
    } else {
      throw new InvalidConfigurationException( "Property " + propertyName + " does not exist in the configuration file and no default value is set" );
    }
  }
View Full Code Here

Examples of javax.cache.InvalidConfigurationException

    }

    @Override
    public CacheBuilder<K, V> setTransactionEnabled(IsolationLevel isolationLevel, Mode mode) {
        if (!Caching.isSupported(OptionalFeature.TRANSACTIONS)) {
            throw new InvalidConfigurationException("transactionsEnabled");
        }
        cacheConfiguration.setTransactionMode(mode);
        cacheConfiguration.setIsolationLevel(isolationLevel);
        return this;
    }
View Full Code Here

Examples of net.sf.ehcache.config.InvalidConfigurationException

    String userid = request.getParameter("userid");
    String password = request.getParameter("password");
    String contextUserid = WebContext.getWebSCContextCredentials().getUserId();
    String contextPassword = WebContext.getWebSCContextCredentials().getPassword();
    if (contextUserid == null || contextPassword == null) {
      throw new InvalidConfigurationException("system configuration has no credentials");
    }
    if (userid == null || password == null) {
      throw new LoginException("not authorized");
    }
    if (userid.equals(contextUserid) == false) {
View Full Code Here

Examples of net.sf.pipet.api.InvalidConfigurationException

      XPath xpath = xpathfactory.newXPath();
      return (NodeList)xpath.evaluate(expression, dom, XPathConstants.NODESET);
    }
    catch (XPathExpressionException e)
    {
      throw new InvalidConfigurationException(String.format("Unable to evaluate X path expression: %s", expression), e);
    }
  }
View Full Code Here

Examples of net.yura.lobby.server.InvalidConfigurationException

            {
                game = new TicTacToeGame(startGameOptions,players[0],players[1],this);
            }
            else
            {
                throw new InvalidConfigurationException("Invalid Number of players");
            }
        }
        catch(InvalidConfigurationException e)
        {
            System.out.println(e.getMessage());
View Full Code Here

Examples of org.apache.geronimo.gbean.InvalidConfigurationException

        Configuration configuration;
        try {
            kernel.startGBean(configurationName);
            if (State.RUNNING_INDEX != kernel.getGBeanState(configurationName)) {
                String stateReason = kernel.getStateReason(configurationName);
                throw new InvalidConfigurationException("Configuration gbean failed to start " + configurationId + "\nreason: " + stateReason);
            }

            // get the configuration
            configuration = (Configuration) kernel.getGBean(configurationName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.