class Cassandra::Protocol::UnpreparedErrorResponse

Attributes

id[R]

Public Class Methods

new(custom_payload, warnings, code, message, id) click to toggle source
Calls superclass method Cassandra::Protocol::ErrorResponse::new
   # File lib/cassandra/protocol/responses/unprepared_error_response.rb
24 def initialize(custom_payload, warnings, code, message, id)
25   super(custom_payload, warnings, code, message)
26 
27   @id = id
28 end

Public Instance Methods

to_error(keyspace, statement, options, hosts, consistency, retries) click to toggle source
   # File lib/cassandra/protocol/responses/unprepared_error_response.rb
30 def to_error(keyspace, statement, options, hosts, consistency, retries)
31   Errors::UnpreparedError.new(@message,
32                               @custom_payload,
33                               @warnings,
34                               keyspace,
35                               statement,
36                               options,
37                               hosts,
38                               consistency,
39                               retries,
40                               @id)
41 end
to_s() click to toggle source
   # File lib/cassandra/protocol/responses/unprepared_error_response.rb
43 def to_s
44   "#{super} #{@id}"
45 end