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



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

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

#call_pipelined(_command, config) ⇒ Object



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

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

#connect(config) ⇒ Object



19
20
21
22
23
24
# File 'lib/redis_client/cluster/error_identification.rb', line 19

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