class Parliament::NetworkError
A parent class that standardises the error message generated for network errors.
@see Parliament::ClientError
@see Parliament::ServerError
@since 0.6.0
Public Class Methods
new(url, response)
click to toggle source
Calls superclass method
# File lib/parliament/network_error.rb, line 9 def initialize(url, response) super("#{response.code} HTTP status code received from: #{url} - #{response.status_message}") end