Exception: Ucode::Fetch::Http::ValidationFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ucode/fetch/http.rb

Overview

Internal carrier for a validation failure inside a retry attempt. Re-raised from the loop so the response body (which is partial on retries) isn't double-validated against truncated bytes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ ValidationFailure

Returns a new instance of ValidationFailure.



79
80
81
82
# File 'lib/ucode/fetch/http.rb', line 79

def initialize(cause)
  @cause = cause
  super(cause.message)
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



77
78
79
# File 'lib/ucode/fetch/http.rb', line 77

def cause
  @cause
end