Exception: DurableHuggingfaceHub::FileMetadataError
- Inherits:
-
DurableHuggingfaceHubError
- Object
- StandardError
- DurableHuggingfaceHubError
- DurableHuggingfaceHub::FileMetadataError
- Defined in:
- lib/durable_huggingface_hub/errors.rb
Overview
Error raised when file metadata cannot be retrieved or is invalid.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The file path.
Instance Method Summary collapse
-
#initialize(path, message) ⇒ FileMetadataError
constructor
Creates a new file metadata error.
Constructor Details
#initialize(path, message) ⇒ FileMetadataError
Creates a new file metadata error.
280 281 282 283 |
# File 'lib/durable_huggingface_hub/errors.rb', line 280 def initialize(path, ) @path = path super("File metadata error for '#{path}': #{}") end |
Instance Attribute Details
#path ⇒ String (readonly)
Returns The file path.
274 275 276 |
# File 'lib/durable_huggingface_hub/errors.rb', line 274 def path @path end |