class Seriline::RequestFailedError
Public Class Methods
new(net_http_error)
click to toggle source
Calls superclass method
# File lib/seriline/errors.rb, line 5 def initialize(net_http_error) super build_message(net_http_error) end
Private Instance Methods
build_message(net_http_error)
click to toggle source
# File lib/seriline/errors.rb, line 11 def build_message(net_http_error) %( Net::HTTP failed to execute request with the following status: Status: #{net_http_error.code} ) end