Exception: DurableHuggingfaceHub::LFSError
- Inherits:
-
DurableHuggingfaceHubError
- Object
- StandardError
- DurableHuggingfaceHubError
- DurableHuggingfaceHub::LFSError
- Defined in:
- lib/durable_huggingface_hub/errors.rb
Overview
Error raised when LFS (Large File Storage) operations fail.
Instance Attribute Summary collapse
-
#file ⇒ String?
readonly
The file involved in the LFS operation.
Instance Method Summary collapse
-
#initialize(message, file: nil) ⇒ LFSError
constructor
Creates a new LFS error.
Constructor Details
#initialize(message, file: nil) ⇒ LFSError
Creates a new LFS error.
406 407 408 409 410 |
# File 'lib/durable_huggingface_hub/errors.rb', line 406 def initialize(, file: nil) @file = file error_msg = file ? "LFS error for '#{file}': #{}" : "LFS error: #{}" super(error_msg) end |
Instance Attribute Details
#file ⇒ String? (readonly)
Returns The file involved in the LFS operation.
400 401 402 |
# File 'lib/durable_huggingface_hub/errors.rb', line 400 def file @file end |