Examples of CassandraTableExistsException


Examples of org.springframework.cassandra.support.exception.CassandraTableExistsException

          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);
    }
View Full Code Here

Examples of org.springframework.cassandra.support.exception.CassandraTableExistsException

    AlreadyExistsException cx = new AlreadyExistsException(keyspace, table);
    DataAccessException dax = tx.translateExceptionIfPossible(cx);
    assertNotNull(dax);
    assertTrue(dax instanceof CassandraTableExistsException);

    CassandraTableExistsException x = (CassandraTableExistsException) dax;
    assertEquals(table, x.getTableName());
    assertEquals(x.getTableName(), x.getElementName());
    assertEquals(CassandraSchemaElementExistsException.ElementType.TABLE, x.getElementType());
    assertEquals(cx, x.getCause());
  }
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.