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 Tue, 21 Apr 2026 04:00:24 +0000