Exception: Cassandra::Errors::WriteError
- Inherits:
-
StandardError
- Object
- StandardError
- Cassandra::Errors::WriteError
- Includes:
- ExecutionError
- Defined in:
- lib/cassandra/errors.rb
Overview
Raised when a write 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 writes failed.
-
#failures_by_node ⇒ Hash<IPAddr, Integer>
readonly
Map of
. -
#received ⇒ Integer
readonly
The number of acks received.
-
#required ⇒ Integer
readonly
The number of acks required.
-
#type ⇒ Symbol
readonly
The type of write request that timed out, one of WRITE_TYPES.
Method Summary
Methods included from ExecutionError
Instance Attribute Details
#consistency ⇒ Symbol (readonly)
344 345 346 |
# File 'lib/cassandra/errors.rb', line 344 def consistency @consistency end |
#failed ⇒ Integer (readonly)
350 351 352 |
# File 'lib/cassandra/errors.rb', line 350 def failed @failed end |
#failures_by_node ⇒ Hash<IPAddr, Integer> (readonly)
353 354 355 |
# File 'lib/cassandra/errors.rb', line 353 def failures_by_node @failures_by_node end |
#received ⇒ Integer (readonly)
348 349 350 |
# File 'lib/cassandra/errors.rb', line 348 def received @received end |
#required ⇒ Integer (readonly)
346 347 348 |
# File 'lib/cassandra/errors.rb', line 346 def required @required end |
#type ⇒ Symbol (readonly)
341 342 343 |
# File 'lib/cassandra/errors.rb', line 341 def type @type end |