Exception: Chain::InvalidRequestIDError
- Defined in:
- lib/chain/errors.rb
Overview
InvalidRequestIDError arises when an HTTP response is received, but it does not contain headers that are included in all Chain API responses. This could arise due to a badly-configured proxy, or other upstream network issues.
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidRequestIDError
constructor
A new instance of InvalidRequestIDError.
Constructor Details
#initialize(response) ⇒ InvalidRequestIDError
Returns a new instance of InvalidRequestIDError.
13 14 15 16 |
# File 'lib/chain/errors.rb', line 13 def initialize(response) super "Response HTTP header field Chain-Request-ID is unset. There may be network issues. Please check your local network settings." self.response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
11 12 13 |
# File 'lib/chain/errors.rb', line 11 def response @response end |