Exception: ImageVise::FetcherHTTP::UpstreamError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/image_vise/fetchers/fetcher_http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_status, message) ⇒ UpstreamError

Returns a new instance of UpstreamError.



8
9
10
11
# File 'lib/image_vise/fetchers/fetcher_http.rb', line 8

def initialize(http_status, message)
  super(message)
  @http_status = http_status
end

Instance Attribute Details

#http_statusObject

Returns the value of attribute http_status.



7
8
9
# File 'lib/image_vise/fetchers/fetcher_http.rb', line 7

def http_status
  @http_status
end