Exception: Ferrum::ClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/ferrum/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ClientError

Returns a new instance of ClientError.



14
15
16
17
# File 'lib/ferrum/errors.rb', line 14

def initialize(response)
  @response = response
  super(response["message"])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/ferrum/errors.rb', line 12

def response
  @response
end