AsyncMysqlException

The base exception class for any issues arising from the use of async MySQL

In general, when trying to connect to a MySQL client (e.g., via AsyncMysqlConnectionPool::connect()) or when making a query (e.g., via AsyncMysqlConnection::queryf()), it is good practice to have your code exception catchable somewhere in the code pipeline (via try/catch).

e.g.,

try {
  // code here
} catch (AsyncMysqlException $ex) {
  $error = $ex->mysqlErrorString();
}

Guides

Interface Synopsis

class AsyncMysqlException extends Exception {...}

Public Methods