mperham / connection_pool

Generic connection pooling for Ruby
MIT License
1.63k stars 143 forks source link

Refactor exceptions #130

Closed mperham closed 4 years ago

mperham commented 4 years ago

Pool currently throws Timeout::Error. Refactor to be ConnectionPool::TimeoutError > Timeout::Error so callers can distinguish between a pool timeout and a timeout from a pooled network client.

ConnectionPool::PoolShuttingDownError is a RuntimeError. Make it a subclass of ConnectionPool::Error.