Exception: DurableHuggingfaceHub::CacheNotFoundError
- Inherits:
-
DurableHuggingfaceHubError
- Object
- StandardError
- DurableHuggingfaceHubError
- DurableHuggingfaceHub::CacheNotFoundError
- Defined in:
- lib/durable_huggingface_hub/errors.rb
Overview
Error raised when the cache directory or cached files are not found.
Instance Attribute Summary collapse
-
#cache_path ⇒ String
readonly
The cache path.
Instance Method Summary collapse
-
#initialize(cache_path, message: nil) ⇒ CacheNotFoundError
constructor
Creates a new cache not found error.
Constructor Details
#initialize(cache_path, message: nil) ⇒ CacheNotFoundError
Creates a new cache not found error.
298 299 300 301 302 |
# File 'lib/durable_huggingface_hub/errors.rb', line 298 def initialize(cache_path, message: nil) @cache_path = cache_path ||= "Cache not found at: #{cache_path}" super() end |
Instance Attribute Details
#cache_path ⇒ String (readonly)
Returns The cache path.
292 293 294 |
# File 'lib/durable_huggingface_hub/errors.rb', line 292 def cache_path @cache_path end |