class Cassandra::Errors::UnpreparedError
Raised when a prepared statement tries to be executed and the provided prepared statement ID is not known by this host
@note Seeing this error can be considered a Ruby Driver
bug as it should
handle automatic re-preparing internally.
@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L738-L741 Description
of Unprepared Error in Apache Cassandra native protocol spec v1
Attributes
id[R]
@return [String] prepared statement id that triggered the error
Public Class Methods
new(message, payload, warnings, keyspace, statement, options, hosts, consistency, retries, id)
click to toggle source
@private
Calls superclass method
Cassandra::Errors::ValidationError::new
# File lib/cassandra/errors.rb 634 def initialize(message, 635 payload, 636 warnings, 637 keyspace, 638 statement, 639 options, 640 hosts, 641 consistency, 642 retries, 643 id) 644 super(message, 645 payload, 646 warnings, 647 keyspace, 648 statement, 649 options, 650 hosts, 651 consistency, 652 retries) 653 @id = id 654 end