Sha256: 2ee192b012cdc347bf1aa2b5c9d9ba367167a81160fd11337aef67b1d57b1e53
Contents?: true
Size: 383 Bytes
Versions: 9
Compression:
Stored size: 383 Bytes
Contents
module Parliament # A parent class that standardises the error message generated for network errors. # # @see Parliament::ClientError # @see Parliament::ServerError # # @since 0.6.0 class NetworkError < StandardError def initialize(url, response) super("#{response.code} HTTP status code received from: #{url} - #{response.status_message}") end end end
Version data entries
9 entries across 9 versions & 1 rubygems