Exception: SimpleRSS::HTTPError
- Inherits:
-
RequestError
- Object
- StandardError
- SimpleRSSError
- RequestError
- SimpleRSS::HTTPError
- Defined in:
- lib/simple-rss/request_errors.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
: Integer.
Instance Method Summary collapse
-
#initialize(status_code) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(status_code) ⇒ HTTPError
Returns a new instance of HTTPError.
16 17 18 19 |
# File 'lib/simple-rss/request_errors.rb', line 16 def initialize(status_code) @status_code = status_code super("HTTP #{status_code} during feed discovery") end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
: Integer
13 14 15 |
# File 'lib/simple-rss/request_errors.rb', line 13 def status_code @status_code end |