Exception: DurableHuggingfaceHub::DurableHuggingfaceHubError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/durable_huggingface_hub/errors.rb

Overview

Base error class for all HuggingFace Hub errors.

All exceptions raised by this library inherit from this class, allowing users to rescue all library-specific errors with a single rescue clause.

Examples:

Catching all library errors

begin
  # HuggingFace Hub operations
rescue DurableHuggingfaceHub::DurableHuggingfaceHubError => e
  puts "HuggingFace Hub error: #{e.message}"
end