1""" 2Connection pool errors. 3""" 4 5# Copyright (C) 2021 The Psycopg Team 6 7from psycopg import errors as e 8 9 10class PoolClosed(e.OperationalError): 11 """Attempt to get a connection from a closed pool.""" 12 13 __module__ = "psycopg_pool" 14 15 16class PoolTimeout(e.OperationalError): 17 """The pool couldn't provide a connection in acceptable time.""" 18 19 __module__ = "psycopg_pool" 20 21 22class TooManyRequests(e.OperationalError): 23 """Too many requests in the queue waiting for a connection from the pool.""" 24 25 __module__ = "psycopg_pool" 26