Class UnavailableException
Exception thrown when the coordinator knows there is not enough replica alive to perform a query with the requested consistency level.
Inheritance
System.Object
System.Exception
UnavailableException
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 UnavailableException : QueryExecutionException, ISerializable
Constructors
UnavailableException(ConsistencyLevel, Int32, Int32)
Declaration
public UnavailableException(ConsistencyLevel consistency, int required, int alive)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
System.Int32 | required | |
System.Int32 | alive |
Properties
AliveReplicas
Gets the number of replica that were known to be alive by the Cassandra coordinator node when it tried to execute the operation.
Declaration
public int AliveReplicas { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Consistency
Gets the consistency level of the operation triggering this unavailable exception.
Declaration
public ConsistencyLevel Consistency { get; }
Property Value
Type | Description |
---|---|
ConsistencyLevel |
RequiredReplicas
Gets the number of replica acknowledgements/responses required to perform the operation (with its required consistency level).
Declaration
public int RequiredReplicas { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
System.Runtime.Serialization.ISerializable