Exception: Apify::RequestFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/apify/errors.rb

Direct Known Subclasses

Invalid, Unauthorized

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response_body = nil) ⇒ RequestFailed

Returns a new instance of RequestFailed.



7
8
9
10
# File 'lib/apify/errors.rb', line 7

def initialize(message, response_body = nil)
  super(message)
  @response_body = response_body
end

Instance Attribute Details

#response_bodyObject (readonly)

Returns the value of attribute response_body.



5
6
7
# File 'lib/apify/errors.rb', line 5

def response_body
  @response_body
end