AsyncMysqlConnectException
Note
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
The exception associated with a MySQL connection failure
All methods are the same as the base AsyncMysqlException.
Interface Synopsis
class AsyncMysqlConnectException extends AsyncMysqlException {...}
Public Methods (AsyncMysqlException)
->__construct(AsyncMysqlErrorResult $result)
Explicitly construct anAsyncMysqlException->failed(): bool
Returns whether the type of failure that produced the exception was a general connection or query failure->getResult(): AsyncMysqlErrorResult
Returns the underlyingAsyncMysqlErrorResultassociated with the current exception->mysqlErrorCode(): int
Returns the MySQL error number for that caused the current exception->mysqlErrorString(): string
Returns a human-readable string for the error encountered in the current exception->timedOut(): bool
Returns whether the type of failure that produced the exception was a timeout