Exception: Jess::HttpClient::Error

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#http_methodObject

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

#uriObject

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_sObject



10
11
12
# File 'lib/jess/http_client/error.rb', line 10

def to_s
  "#{super} (during #{http_method.to_s.upcase} #{uri})"
end