Class AlreadyExistsException
Exception thrown when a query attemps to create a keyspace or table that already exists.
Inheritance
System.Object
System.Exception
AlreadyExistsException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Dse
Assembly: Dse.dll
Syntax
public class AlreadyExistsException : QueryValidationException, ISerializable
Constructors
AlreadyExistsException(String, String)
Declaration
public AlreadyExistsException(string keyspace, string table)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyspace | |
System.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 |
---|---|
System.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 |
---|---|
System.String |
WasTableCreation
Gets whether the query yielding this exception was a table creation attempt.
Declaration
public bool WasTableCreation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
System.Runtime.Serialization.ISerializable