ResponseError class

Framework\HTTP\Client\ResponseError

Class ResponseError.

Implements: Stringable

Defined in libraries/http-client/src/ResponseError.php

Properties #

$request
-
$error
-
$errorNumber
-
$info
-

$request

protected \Framework\HTTP\Client\Request $request

$error

protected string $error

$errorNumber

protected int $errorNumber

$info

protected array $info

Methods #

__construct()
-
__toString()
-
getError()
-
getErrorNumber()
-
getInfo()
-
getRequest()
-

__construct()

public function __construct(\Framework\HTTP\Client\Request $request, string $error, int $errorNumber, array $info)
Parameters
  • \Framework\HTTP\Client\Request $request
  • string $error
  • int $errorNumber
  • array $info

__toString()

public function __toString(): string
Returns string

getError()

public function getError(): string
Returns string

getErrorNumber()

public function getErrorNumber(): int
Returns int

getInfo()

public function getInfo(): array
Returns array

getRequest()

public function getRequest(): \Framework\HTTP\Client\Request
Returns \Framework\HTTP\Client\Request