Class AlreadyExistsException
Exception thrown when a query attemps to create a keyspace or table that already exists.
Implements
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class AlreadyExistsException : QueryValidationException, ISerializable
Constructors
AlreadyExistsException(string, string)
Declaration
public AlreadyExistsException(string keyspace, string table)
Parameters
Type | Name | Description |
---|---|---|
string | keyspace | |
string | table |
Properties
Keyspace
Gets the name of keyspace that either already exists or is home to the table that already exists.
Declaration
public string Keyspace { get; }
Property Value
Type | Description |
---|---|
string |
Table
If the failed creation was a table creation, gets the name of the table that already exists.
Declaration
public string Table { get; }
Property Value
Type | Description |
---|---|
string |
WasTableCreation
Gets whether the query yielding this exception was a table creation attempt.
Declaration
public bool WasTableCreation { get; }
Property Value
Type | Description |
---|---|
bool |