Class AlreadyExistsException
Exception thrown when a query attemps to create a keyspace or table that already exists.
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 |
Implements
System.Runtime.Serialization.ISerializable