Exception: Hoolp::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hoolp/api_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(response_body) ⇒ ApiError

Returns a new instance of ApiError.



3
4
5
# File 'lib/hoolp/api_error.rb', line 3

def initialize(response_body)
  super(response_body.fetch("error"))
end