Exception: Polar::Error::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/polar/error/http_error.rb

Instance Method Summary collapse

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_sObject



9
10
11
# File 'lib/polar/error/http_error.rb', line 9

def to_s
  "HTTP Error - the request returnd:(#{@status})"
end