Exception: Parliament::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- Parliament::NetworkError
- Defined in:
- lib/parliament/network_error.rb
Overview
A parent class that standardises the error message generated for network errors.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(url, response) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(url, response) ⇒ NetworkError
Returns a new instance of NetworkError.
9 10 11 |
# File 'lib/parliament/network_error.rb', line 9 def initialize(url, response) super("#{response.code} HTTP status code received from: #{url} - #{response.}") end |