Exception: Scrapetor::Fetcher::FetchError
- Inherits:
-
StandardError
- Object
- StandardError
- Scrapetor::Fetcher::FetchError
- Defined in:
- lib/scrapetor/fetcher.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, status: nil, response: nil) ⇒ FetchError
constructor
A new instance of FetchError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
31 32 33 |
# File 'lib/scrapetor/fetcher.rb', line 31 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
31 32 33 |
# File 'lib/scrapetor/fetcher.rb', line 31 def status @status end |