Exception: Polar::Error::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Polar::Error::HTTPError
- Defined in:
- lib/polar/error/http_error.rb
Instance Method Summary collapse
-
#initialize(status) ⇒ HTTPError
constructor
A new instance of HTTPError.
- #to_s ⇒ Object
Constructor Details
#initialize(status) ⇒ HTTPError
Returns a new instance of HTTPError.
4 5 6 7 |
# File 'lib/polar/error/http_error.rb', line 4 def initialize(status) @status = status super(to_s) end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/polar/error/http_error.rb', line 9 def to_s "HTTP Error - the request returnd:(#{@status})" end |