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.



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

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



75
76
77
# File 'lib/ucode/fetch/http.rb', line 75

def cause
  @cause
end