Exception: Scraper::Reader::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Scraper::Reader::HTTPError
- Defined in:
- lib/scraper/reader.rb
Direct Known Subclasses
HTTPInvalidURLError, HTTPNoAccessError, HTTPNotFoundError, HTTPRedirectLimitError, HTTPTimeoutError, HTTPUnspecifiedError
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(cause = nil) ⇒ HTTPError
constructor
A new instance of HTTPError.
- #to_s ⇒ Object
Constructor Details
#initialize(cause = nil) ⇒ HTTPError
Returns a new instance of HTTPError.
26 27 28 |
# File 'lib/scraper/reader.rb', line 26 def initialize(cause = nil) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
24 25 26 |
# File 'lib/scraper/reader.rb', line 24 def cause @cause end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/scraper/reader.rb', line 31 def to_s @cause ? "#{super}: #{@cause}" : super end |