Exception: DurableHuggingfaceHub::CorruptedCacheError
- Inherits:
-
DurableHuggingfaceHubError
- Object
- StandardError
- DurableHuggingfaceHubError
- DurableHuggingfaceHub::CorruptedCacheError
- Defined in:
- lib/durable_huggingface_hub/errors.rb
Overview
Error raised when cached files are corrupted or invalid.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The corrupted file path.
Instance Method Summary collapse
-
#initialize(path, reason) ⇒ CorruptedCacheError
constructor
Creates a new corrupted cache error.
Constructor Details
#initialize(path, reason) ⇒ CorruptedCacheError
Creates a new corrupted cache error.
317 318 319 320 |
# File 'lib/durable_huggingface_hub/errors.rb', line 317 def initialize(path, reason) @path = path super("Corrupted cache file at '#{path}': #{reason}") end |
Instance Attribute Details
#path ⇒ String (readonly)
Returns The corrupted file path.
311 312 313 |
# File 'lib/durable_huggingface_hub/errors.rb', line 311 def path @path end |