Exception: HTTPX::Plugins::ContentDigest::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/httpx/plugins/content_digest.rb

Overview

Error raised on response “content-digest” header validation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ValidationError

Returns a new instance of ValidationError.


18
19
20
21
# File 'lib/httpx/plugins/content_digest.rb', line 18

def initialize(message, response)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.


16
17
18
# File 'lib/httpx/plugins/content_digest.rb', line 16

def response
  @response
end