module Cassandra::Errors::ExecutionError

Mixed into all request execution errors.

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
117 def initialize(message,
118                payload,
119                warnings,
120                keyspace,
121                statement,
122                options,
123                hosts,
124                consistency,
125                retries)
126   super(message)
127   @payload     = payload
128   @warnings    = warnings
129   @keyspace    = keyspace
130   @statement   = statement
131   @options     = options
132   @hosts       = hosts
133   @consistency = consistency
134   @retries     = retries
135 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
139 def execution_info
140   @info ||= Execution::Info.new(@payload,
141                                 @warnings,
142                                 @keyspace,
143                                 @statement,
144                                 @options,
145                                 @hosts,
146                                 @consistency,
147                                 @retries,
148                                 nil)
149 end