Examples of AlreadyExistsException


Examples of com.amazonaws.services.autoscaling.model.AlreadyExistsException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("AlreadyExists"))
            return null;

        AlreadyExistsException e = (AlreadyExistsException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.cloudformation.model.AlreadyExistsException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("AlreadyExistsException"))
            return null;

        AlreadyExistsException e = (AlreadyExistsException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.kms.model.AlreadyExistsException

        }
    }

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

        return e;
    }
View Full Code Here

Examples of com.datastax.driver.core.exceptions.AlreadyExistsException

      UnavailableException ux = (UnavailableException) x;
      return new CassandraInsufficientReplicasAvailableException(ux.getRequiredReplicas(), ux.getAliveReplicas(),
          x.getMessage(), x);
    }
    if (x instanceof AlreadyExistsException) {
      AlreadyExistsException aex = (AlreadyExistsException) x;

      return aex.wasTableCreation() ? new CassandraTableExistsException(aex.getTable(), x.getMessage(), x)
          : new CassandraKeyspaceExistsException(aex.getKeyspace(), x.getMessage(), x);
    }
    if (x instanceof InvalidConfigurationInQueryException) {
      return new CassandraInvalidConfigurationInQueryException(x.getMessage(), x);
    }
    if (x instanceof InvalidQueryException) {
View Full Code Here

Examples of com.netflix.paas.exceptions.AlreadyExistsException

     */
    public synchronized void registerKeyspace(String keyspaceName) throws AlreadyExistsException {
        Preconditions.checkNotNull(keyspaceName);
       
        if (keyspaces.containsKey(keyspaceName)) {
            throw new AlreadyExistsException("keyspace", keyspaceName);
        }
       
        CassandraKeyspaceHolder keyspace = new CassandraKeyspaceHolder(new AstyanaxContext.Builder()
                .forCluster(clusterName)
                .forKeyspace(keyspaceName)
View Full Code Here

Examples of org.acegisecurity.acls.AlreadyExistsException

        throws AlreadyExistsException {
        Assert.notNull(objectIdentity, "Object Identity required");

        // Check this object identity hasn't already been persisted
        if (retrieveObjectIdentityPrimaryKey(objectIdentity) != null) {
            throw new AlreadyExistsException("Object identity '" + objectIdentity + "' already exists");
        }

        // Need to retrieve the current principal, in order to know who "owns" this ACL (can be changed later on)
        Authentication auth = SecurityContextHolder.getContext().getAuthentication();
        PrincipalSid sid = new PrincipalSid(auth);
View Full Code Here

Examples of org.apache.cassandra.exceptions.AlreadyExistsException

    public static void announceNewKeyspace(KSMetaData ksm) throws ConfigurationException
    {
        ksm.validate();

        if (Schema.instance.getTableDefinition(ksm.name) != null)
            throw new AlreadyExistsException(ksm.name);

        logger.info(String.format("Create new Keyspace: %s", ksm));
        announce(ksm.toSchema(FBUtilities.timestampMicros()));
    }
View Full Code Here

Examples of org.apache.cassandra.exceptions.AlreadyExistsException

        KSMetaData ksm = Schema.instance.getTableDefinition(cfm.ksName);
        if (ksm == null)
            throw new ConfigurationException(String.format("Cannot add column family '%s' to non existing keyspace '%s'.", cfm.cfName, cfm.ksName));
        else if (ksm.cfMetaData().containsKey(cfm.cfName))
            throw new AlreadyExistsException(cfm.cfName, cfm.ksName);

        logger.info(String.format("Create new ColumnFamily: %s", cfm));
        announce(cfm.toSchema(FBUtilities.timestampMicros()));
    }
View Full Code Here

Examples of org.apache.cassandra.exceptions.AlreadyExistsException

    public static void announceNewKeyspace(KSMetaData ksm, long timestamp) throws ConfigurationException
    {
        ksm.validate();

        if (Schema.instance.getTableDefinition(ksm.name) != null)
            throw new AlreadyExistsException(ksm.name);

        logger.info(String.format("Create new Keyspace: %s", ksm));
        announce(ksm.toSchema(timestamp));
    }
View Full Code Here

Examples of org.apache.cassandra.exceptions.AlreadyExistsException

        KSMetaData ksm = Schema.instance.getTableDefinition(cfm.ksName);
        if (ksm == null)
            throw new ConfigurationException(String.format("Cannot add column family '%s' to non existing keyspace '%s'.", cfm.cfName, cfm.ksName));
        else if (ksm.cfMetaData().containsKey(cfm.cfName))
            throw new AlreadyExistsException(cfm.ksName, cfm.cfName);

        logger.info(String.format("Create new ColumnFamily: %s", cfm));
        announce(cfm.toSchema(FBUtilities.timestampMicros()));
    }
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.