Class: Pinot::PinotException
- Inherits:
-
Object
- Object
- Pinot::PinotException
- Defined in:
- lib/pinot/response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PinotException
constructor
A new instance of PinotException.
Constructor Details
#initialize(hash) ⇒ PinotException
Returns a new instance of PinotException.
42 43 44 45 |
# File 'lib/pinot/response.rb', line 42 def initialize(hash) @error_code = hash["errorCode"] @message = hash["message"] end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
40 41 42 |
# File 'lib/pinot/response.rb', line 40 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
40 41 42 |
# File 'lib/pinot/response.rb', line 40 def @message end |