Exception: Phishin::Client::EmptyResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/phishin/client/errors.rb

Overview

Raised when there is no response body

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ EmptyResponseError

Returns a new instance of EmptyResponseError.



15
16
17
18
# File 'lib/phishin/client/errors.rb', line 15

def initialize(url)
  @url = url
  super("phish.in api response body was empty for url=#{url}")
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



13
14
15
# File 'lib/phishin/client/errors.rb', line 13

def url
  @url
end