Exception: Sensu::Redis::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sensu/redis/client/errors.rb

Overview

Error class for Redis command errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CommandError

Returns a new instance of CommandError.



13
14
15
16
# File 'lib/sensu/redis/client/errors.rb', line 13

def initialize(*args)
  args[0] = "redis returned error code: #{args[0]}"
  super
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



11
12
13
# File 'lib/sensu/redis/client/errors.rb', line 11

def code
  @code
end