Class ReadFailureException
A Server failure (non-timeout) during a read query.
Inheritance
object
Exception
ReadFailureException
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 ReadFailureException : QueryExecutionException, ISerializable
Constructors
ReadFailureException(ConsistencyLevel, int, int, bool, IDictionary<IPAddress, int>)
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 | |
int | received | |
int | required | |
bool | dataPresent | |
IDictionary<IPAddress, int> | reasons |
ReadFailureException(ConsistencyLevel, int, int, bool, int)
Declaration
public ReadFailureException(ConsistencyLevel consistency, int received, int required, bool dataPresent, int failures)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
int | received | |
int | required | |
bool | dataPresent | |
int | 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 |
---|---|
int |
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 |
---|---|
IDictionary<IPAddress, int> |
ReceivedAcknowledgements
Gets the number of replica that had acknowledged/responded to the operation
Declaration
public int ReceivedAcknowledgements { get; }
Property Value
Type | Description |
---|---|
int |
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 |
---|---|
int |
WasDataRetrieved
Declaration
public bool WasDataRetrieved { get; }
Property Value
Type | Description |
---|---|
bool |
Implements
System.Runtime.Serialization.ISerializable