Exception: Jess::HttpClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Jess::HttpClient::Error
- Defined in:
- lib/jess/http_client/error.rb
Overview
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.
Instance Attribute Summary collapse
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
Instance Attribute Details
#http_method ⇒ Object
Returns the value of attribute http_method.
8 9 10 |
# File 'lib/jess/http_client/error.rb', line 8 def http_method @http_method end |
#uri ⇒ Object
Returns the value of attribute uri.
8 9 10 |
# File 'lib/jess/http_client/error.rb', line 8 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/jess/http_client/error.rb', line 10 def to_s "#{super} (during #{http_method.to_s.upcase} #{uri})" end |