class Jess::HttpClient::Error
Base class for exceptions raised by Jess::HttpClient
. These exceptions hold a reference to the URI and HTTP method (e.g. “GET”, “POST”) that were being attempted when the error occurred.
Attributes
code[RW]
http_method[RW]
response[RW]
uri[RW]
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
# File lib/jess/http_client/error.rb, line 10 def to_s message = [code, super].join(" ").strip "#{message} (during #{http_method.to_s.upcase} #{uri})" end