NoConnection
Less than 1 minute
NoConnection
Exception thrown when a connection to a specified host cannot be established during an HTTP request.
class NoConnection extends \Hazaar\HTTP\Exception\ExceptionUsed to indicate network or socket errors when attempting to connect to a remote host, providing error details for diagnostics.
Methods
__construct
Constructs a NoConnection exception with a descriptive error message.
public __construct(string $host, int $errno, string $errstr): voidThis exception is thrown when a connection to the specified host fails, including error number and string for context.
Parameters
| Parameter | Type | Description |
|---|---|---|
$host | string | the host address that could not be connected to |
$errno | int | the error number returned by the connection attempt |
$errstr | string | the error string describing the failure |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000