Class ReadFailureException
A Server failure (non-timeout) during a read query.
Inheritance
ReadFailureException
Implements
Inherited Members
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 |