lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::db::PoolTimeoutException Class Reference

#include <PoolTimeoutException.h>

Inheritance diagram for lintel::db::PoolTimeoutException:
lintel::db::SQLException

Public Member Functions

 PoolTimeoutException (std::string message)
 
- Public Member Functions inherited from lintel::db::SQLException
 SQLException ()=delete
 
 SQLException (std::string message)
 
const char * what () const noexcept override
 

Detailed Description

Thrown when a ConnectionPool cannot hand out a connection in time.

The message names the pool and its configured maximum and lists every lease that is still outstanding (source location, thread id, age), so a pool exhaustion can be diagnosed from the exception alone. It is also thrown immediately - without waiting - when the calling thread already holds a lease of the same pool (re-entrancy) or when pooling is disabled (poolSize=0).

Constructor & Destructor Documentation

◆ PoolTimeoutException()

lintel::db::PoolTimeoutException::PoolTimeoutException ( std::string  message)
inlineexplicit
Parameters
messagedescription of the pool exhaustion

The documentation for this class was generated from the following file: