class Cassandra::Errors::ProtocolError

Raised when some client message triggered a protocol violation (for instance a QUERY message is sent before a STARTUP one has been sent)

@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L656-L658 Description

of Protocol Error in Apache Cassandra native protocol spec v1

Public Class Methods

new(message, payload, warnings, keyspace, statement, options, hosts, consistency, retries) click to toggle source

@private

Calls superclass method
    # File lib/cassandra/errors.rb
504 def initialize(message,
505                payload,
506                warnings,
507                keyspace,
508                statement,
509                options,
510                hosts,
511                consistency,
512                retries)
513   super(message)
514   @payload     = payload
515   @warnings    = warnings
516   @keyspace    = keyspace
517   @statement   = statement
518   @options     = options
519   @hosts       = hosts
520   @consistency = consistency
521   @retries     = retries
522 end

Public Instance Methods

execution_info() click to toggle source

Query execution information, such as number of retries and all tried hosts, etc. @return [Cassandra::Execution::Info]

    # File lib/cassandra/errors.rb
526 def execution_info
527   @info ||= Execution::Info.new(@payload,
528                                 @warnings,
529                                 @keyspace,
530                                 @statement,
531                                 @options,
532                                 @hosts,
533                                 @consistency,
534                                 @retries,
535                                 nil)
536 end