Class: Cequel::Metal::Policy::CassandraError::ErrorPolicyBase

Inherits:
Object
  • Object
show all
Defined in:
lib/cequel/metal/policy/cassandra_error.rb

Overview

Since:

  • 1.0.0

Direct Known Subclasses

ClearAndRetryPolicy, RaisePolicy

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ErrorPolicyBase

On instantiation, the configuraiton hash passed to Cequel is available here

Since:

  • 1.0.0



19
20
# File 'lib/cequel/metal/policy/cassandra_error.rb', line 19

def initialize(options = {})
end

Instance Method Details

#execute_stmt(keyspace) ⇒ Object

Raises:

  • (NotImplementedError)

Since:

  • 1.0.0



22
23
24
# File 'lib/cequel/metal/policy/cassandra_error.rb', line 22

def execute_stmt(keyspace)
  raise NotImplementedError, "#execute_stmt must be implemented in #{self.class.name}"
end