Exception: Chain::InvalidRequestIDError

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

Instance Method Summary collapse

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

#responseObject

Returns the value of attribute response.



11
12
13
# File 'lib/chain/errors.rb', line 11

def response
  @response
end