ConnectionFailed
Less than 1 minute
ConnectionFailed
Exception thrown when establishing a database connection fails.
class ConnectionFailed extends \Hazaar\DBI\Exception\ExceptionCaptures the target host and optionally appends backend-provided error details to aid diagnostics.
Methods
__construct
Creates a connection failure exception.
public __construct(string $host, ?array $error): voidParameters
| Parameter | Type | Description |
|---|---|---|
$host | string | the database host that failed to connect |
$error | array |
Generated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:15 +0000