Exception: LeanPool::Error

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

Overview

Base error class for all LeanPool errors.

All LeanPool-specific errors inherit from this class, allowing you to catch all LeanPool errors with a single rescue clause.

Examples:

Catching all LeanPool errors

begin
  pool.checkout { |r| r.operation }
rescue LeanPool::Error => e
  puts "LeanPool error: #{e.message}"
end

Since:

  • 0.1.0

Direct Known Subclasses

ResourceError, ShutdownError, TimeoutError