Exception: Phishin::Client::EmptyResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Phishin::Client::EmptyResponseError
- Defined in:
- lib/phishin/client/errors.rb
Overview
Raised when there is no response body
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ EmptyResponseError
constructor
A new instance of EmptyResponseError.
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
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/phishin/client/errors.rb', line 13 def url @url end |