Exception: Cassandra::Errors::ReadError
- Inherits:
-
StandardError
- Object
- StandardError
- Cassandra::Errors::ReadError
- Includes:
- ExecutionError
- Defined in:
- lib/cassandra/errors.rb
Overview
Raised when a read request fails.
Instance Attribute Summary collapse
-
#consistency ⇒ Symbol
readonly
The original consistency level for the request, one of CONSISTENCIES.
-
#failed ⇒ Integer
readonly
The number of reads failed.
-
#failures_by_node ⇒ Hash<IPaddr, Integer>
readonly
Map of
. -
#received ⇒ Integer
readonly
The number of responses received.
-
#required ⇒ Integer
readonly
The number of responses required.
-
#retrieved ⇒ Boolean
readonly
Whether actual data (as opposed to data checksum) was present in the received responses.
Instance Method Summary collapse
Methods included from ExecutionError
Instance Attribute Details
#consistency ⇒ Symbol (readonly)
Returns the original consistency level for the request, one of CONSISTENCIES.
401 402 403 |
# File 'lib/cassandra/errors.rb', line 401 def consistency @consistency end |
#failed ⇒ Integer (readonly)
Returns the number of reads failed.
407 408 409 |
# File 'lib/cassandra/errors.rb', line 407 def failed @failed end |
#failures_by_node ⇒ Hash<IPaddr, Integer> (readonly)
Returns map of
410 411 412 |
# File 'lib/cassandra/errors.rb', line 410 def failures_by_node @failures_by_node end |
#received ⇒ Integer (readonly)
Returns the number of responses received.
405 406 407 |
# File 'lib/cassandra/errors.rb', line 405 def received @received end |
#required ⇒ Integer (readonly)
Returns the number of responses required.
403 404 405 |
# File 'lib/cassandra/errors.rb', line 403 def required @required end |
#retrieved ⇒ Boolean (readonly)
Returns whether actual data (as opposed to data checksum) was present in the received responses.
398 399 400 |
# File 'lib/cassandra/errors.rb', line 398 def retrieved @retrieved end |
Instance Method Details
#retrieved? ⇒ Boolean
445 446 447 |
# File 'lib/cassandra/errors.rb', line 445 def retrieved? @retrieved end |