Exception: RedisClient::Error

Inherits:
StandardError
  • Object
show all
Includes:
HasConfig, Retriable
Defined in:
lib/redis_client.rb

Direct Known Subclasses

CommandError

Instance Attribute Summary collapse

Attributes included from HasConfig

#config

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Retriable

#_set_retry_attempt, #final?, #retriable?, #retry_attempt

Methods included from HasConfig

#_set_config, #message

Instance Attribute Details

#next_errorObject (readonly)

Returns the value of attribute next_error.



151
152
153
# File 'lib/redis_client.rb', line 151

def next_error
  @next_error
end

Class Method Details

.with_config(message, config = nil) ⇒ Object



153
154
155
156
157
# File 'lib/redis_client.rb', line 153

def self.with_config(message, config = nil)
  error = new(message)
  error._set_config(config)
  error
end

Instance Method Details

#_set_next_error(error) ⇒ Object

:nodoc:



159
160
161
# File 'lib/redis_client.rb', line 159

def _set_next_error(error) # :nodoc:
  @next_error = error
end