ConnectionFailed
Less than 1 minute
ConnectionFailed
Exception thrown when establishing a database connection fails.
class ConnectionFailed extends \Hazaar\ExceptionExtends: Hazaar\Exception
Captures 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, 04 Sep 2026 23:32:16 +0000