Class ReadFailureException
A Server failure (non-timeout) during a read query.
Inheritance
System.Object
System.Exception
ReadFailureException
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 ReadFailureException : QueryExecutionException, ISerializable
Constructors
ReadFailureException(ConsistencyLevel, Int32, Int32, Boolean, IDictionary<IPAddress, Int32>)
Creates a new instance of ReadFailureException providing the failure reasons dictionary.
Declaration
public ReadFailureException(ConsistencyLevel consistency, int received, int required, bool dataPresent, IDictionary<IPAddress, int> reasons)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
System.Int32 | received | |
System.Int32 | required | |
System.Boolean | dataPresent | |
System.Collections.Generic.IDictionary<System.Net.IPAddress, System.Int32> | reasons |
ReadFailureException(ConsistencyLevel, Int32, Int32, Boolean, Int32)
Declaration
public ReadFailureException(ConsistencyLevel consistency, int received, int required, bool dataPresent, int failures)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
System.Int32 | received | |
System.Int32 | required | |
System.Boolean | dataPresent | |
System.Int32 | failures |
Properties
ConsistencyLevel
Gets the consistency level of the operation
Declaration
public ConsistencyLevel ConsistencyLevel { get; }
Property Value
Type | Description |
---|---|
ConsistencyLevel |
Failures
Gets the number of nodes that experienced a failure while executing the request.
Declaration
public int Failures { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Reasons
Gets a failure reason code for each node that failed.
On older protocol versions, an empty map and only the number of Failures is provided.
Declaration
public IDictionary<IPAddress, int> Reasons { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Net.IPAddress, System.Int32> |
ReceivedAcknowledgements
Gets the number of replica that had acknowledged/responded to the operation
Declaration
public int ReceivedAcknowledgements { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
RequiredAcknowledgements
Gets the minimum number of replica acknowledgements/responses that were required to fulfill the operation.
Declaration
public int RequiredAcknowledgements { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
WasDataRetrieved
Declaration
public bool WasDataRetrieved { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
System.Runtime.Serialization.ISerializable