class Cassandra::Errors::ServerError
Raised when something unexpected happened. This indicates a server-side bug.
@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L654-L655 Description
of Server 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 52 def initialize(message, 53 payload, 54 warnings, 55 keyspace, 56 statement, 57 options, 58 hosts, 59 consistency, 60 retries) 61 super(message) 62 @payload = payload 63 @warnings = warnings 64 @keyspace = keyspace 65 @statement = statement 66 @options = options 67 @hosts = hosts 68 @consistency = consistency 69 @retries = retries 70 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 74 def execution_info 75 @info ||= Execution::Info.new(@payload, 76 @warnings, 77 @keyspace, 78 @statement, 79 @options, 80 @hosts, 81 @consistency, 82 @retries, 83 nil) 84 end