Exception thrown when a query attempts to create a keyspace or table that already exists.
return String.format("Keyspace %s already exists", keyspace);
return String.format("Table %s.%s already exists", keyspace, table);
Returns whether the query yielding this exception was a table creation
true if this exception is raised following a table
false if it was a keyspace creation attempt.
The name of keyspace that either already exists or is home to the table
that already exists.
- a keyspace name that is either the keyspace whose creation
attempt failed because a keyspace of the same name already exists (in
null), or the keyspace of
the table creation attempt (in which case
will return the
name of said table).
If the failed creation was a table creation, the name of the table that already exists.
- the name of table whose creation attempt failed because a table
of this name already exists, or
null if the query was a keyspace