Exception: Sensu::Redis::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- Sensu::Redis::CommandError
- Defined in:
- lib/sensu/redis/errors.rb
Overview
Error class for Redis command errors.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(*args) ⇒ CommandError
Returns a new instance of CommandError.
13 14 15 16 |
# File 'lib/sensu/redis/errors.rb', line 13 def initialize(*args) args[0] = "redis returned error code: #{args[0]}" super end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
11 12 13 |
# File 'lib/sensu/redis/errors.rb', line 11 def code @code end |