Exception: Scrapetor::Fetcher::FetchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scrapetor/fetcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, status: nil, response: nil) ⇒ FetchError

Returns a new instance of FetchError.



32
33
34
35
36
# File 'lib/scrapetor/fetcher.rb', line 32

def initialize(msg, status: nil, response: nil)
  super(msg)
  @status = status
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



31
32
33
# File 'lib/scrapetor/fetcher.rb', line 31

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



31
32
33
# File 'lib/scrapetor/fetcher.rb', line 31

def status
  @status
end