Exception: Parse::Embeddings::VideoSource::InvalidVideoType
- Inherits:
-
Error
- Object
- StandardError
- Error
- Parse::Embeddings::VideoSource::InvalidVideoType
- Defined in:
- lib/parse/embeddings/video_source.rb
Overview
Raised when bytes fail verification — unknown magic, or a
sniffed type outside the allowlist. Carries a :reason tag
(:empty, :unknown_magic, :type_not_allowed) matching
ImageFetch::InvalidImageType's convention.
Instance Attribute Summary collapse
-
#reason ⇒ Symbol
readonly
Failure-mode tag.
Instance Method Summary collapse
-
#initialize(reason, message) ⇒ InvalidVideoType
constructor
A new instance of InvalidVideoType.
Constructor Details
#initialize(reason, message) ⇒ InvalidVideoType
Returns a new instance of InvalidVideoType.
34 35 36 37 |
# File 'lib/parse/embeddings/video_source.rb', line 34 def initialize(reason, ) @reason = reason super() end |
Instance Attribute Details
#reason ⇒ Symbol (readonly)
Returns failure-mode tag.
33 34 35 |
# File 'lib/parse/embeddings/video_source.rb', line 33 def reason @reason end |