Exception: Cassandra::Errors::ReadError

Inherits:
StandardError
  • Object
show all
Includes:
ExecutionError
Defined in:
lib/cassandra/errors.rb

Overview

Raised when a read request fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ExecutionError

#execution_info

Instance Attribute Details

#consistencySymbol (readonly)

Returns the original consistency level for the request, one of CONSISTENCIES.

Returns:

  • (Symbol)

    the original consistency level for the request, one of CONSISTENCIES



401
402
403
# File 'lib/cassandra/errors.rb', line 401

def consistency
  @consistency
end

#failedInteger (readonly)

Returns the number of reads failed.

Returns:

  • (Integer)

    the number of reads failed



407
408
409
# File 'lib/cassandra/errors.rb', line 407

def failed
  @failed
end

#failures_by_nodeHash<IPaddr, Integer> (readonly)

Returns map of . This is new in v5 and is nil in previous versions of the Casssandra protocol.

Returns:

  • (Hash<IPaddr, Integer>)

    map of . This is new in v5 and is nil in previous versions of the Casssandra protocol.



410
411
412
# File 'lib/cassandra/errors.rb', line 410

def failures_by_node
  @failures_by_node
end

#receivedInteger (readonly)

Returns the number of responses received.

Returns:

  • (Integer)

    the number of responses received



405
406
407
# File 'lib/cassandra/errors.rb', line 405

def received
  @received
end

#requiredInteger (readonly)

Returns the number of responses required.

Returns:

  • (Integer)

    the number of responses required



403
404
405
# File 'lib/cassandra/errors.rb', line 403

def required
  @required
end

#retrievedBoolean (readonly)

Returns whether actual data (as opposed to data checksum) was present in the received responses.

Returns:

  • (Boolean)

    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

Returns:

  • (Boolean)


445
446
447
# File 'lib/cassandra/errors.rb', line 445

def retrieved?
  @retrieved
end