Exception: Cassandra::Errors::WriteError

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

Overview

Raised when a write request fails.

Instance Attribute Summary collapse

Method Summary

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



344
345
346
# File 'lib/cassandra/errors.rb', line 344

def consistency
  @consistency
end

#failedInteger (readonly)

Returns the number of writes failed.

Returns:

  • (Integer)

    the number of writes failed



350
351
352
# File 'lib/cassandra/errors.rb', line 350

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.



353
354
355
# File 'lib/cassandra/errors.rb', line 353

def failures_by_node
  @failures_by_node
end

#receivedInteger (readonly)

Returns the number of acks received.

Returns:

  • (Integer)

    the number of acks received



348
349
350
# File 'lib/cassandra/errors.rb', line 348

def received
  @received
end

#requiredInteger (readonly)

Returns the number of acks required.

Returns:

  • (Integer)

    the number of acks required



346
347
348
# File 'lib/cassandra/errors.rb', line 346

def required
  @required
end

#typeSymbol (readonly)

Returns the type of write request that timed out, one of WRITE_TYPES.

Returns:

  • (Symbol)

    the type of write request that timed out, one of WRITE_TYPES



341
342
343
# File 'lib/cassandra/errors.rb', line 341

def type
  @type
end