Exception: Parse::Embeddings::InvalidImageURL
- Defined in:
- lib/parse/embeddings.rb
Overview
Raised when validate_image_url! rejects an input URL. Carries
a :reason String so retry / logging code can branch on the
specific failure mode (:scheme, :port, :userinfo, :host_blocked,
:host_not_allowlisted, :dns_rebound, :parse).
Instance Attribute Summary collapse
-
#reason ⇒ Symbol
readonly
Failure-mode tag.
Instance Method Summary collapse
-
#initialize(reason, message) ⇒ InvalidImageURL
constructor
A new instance of InvalidImageURL.
Constructor Details
#initialize(reason, message) ⇒ InvalidImageURL
Returns a new instance of InvalidImageURL.
107 108 109 110 |
# File 'lib/parse/embeddings.rb', line 107 def initialize(reason, ) @reason = reason super() end |
Instance Attribute Details
#reason ⇒ Symbol (readonly)
Returns failure-mode tag.
106 107 108 |
# File 'lib/parse/embeddings.rb', line 106 def reason @reason end |