Class: Pinot::PinotException

Inherits:
Object
  • Object
show all
Defined in:
lib/pinot/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (readonly)

Returns the value of attribute error_code.



40
41
42
# File 'lib/pinot/response.rb', line 40

def error_code
  @error_code
end

#messageObject (readonly)

Returns the value of attribute message.



40
41
42
# File 'lib/pinot/response.rb', line 40

def message
  @message
end