Module: RedisClient::Cluster::ErrorIdentification::Middleware

Defined in:
lib/redis_client/cluster/error_identification.rb

Instance Method Summary collapse

Instance Method Details

#call(_command, config) ⇒ Object



32
33
34
35
36
37
# File 'lib/redis_client/cluster/error_identification.rb', line 32

def call(_command, config)
  super
rescue RedisClient::Error => e
  identify_error(e, config)
  raise
end

#call_pipelined(_command, config) ⇒ Object



39
40
41
42
43
44
# File 'lib/redis_client/cluster/error_identification.rb', line 39

def call_pipelined(_command, config)
  super
rescue RedisClient::Error => e
  identify_error(e, config)
  raise
end

#connect(config) ⇒ Object



25
26
27
28
29
30
# File 'lib/redis_client/cluster/error_identification.rb', line 25

def connect(config)
  super
rescue RedisClient::Error => e
  identify_error(e, config)
  raise
end