Aplus Framework Docs

ResponseError
in package
implements Stringable

Class ResponseError.

Table of Contents

Interfaces

Stringable

Properties

$error  : string
$errorNumber  : int
$info  : array<string|int, mixed>
$request  : Request

Methods

__construct()  : mixed
__toString()  : string
getError()  : string
getErrorNumber()  : int
getInfo()  : array<string|int, mixed>
getRequest()  : Request

Properties

Methods

__construct()

public __construct(Request $request, string $error, int $errorNumber, array<string|int, mixed> $info) : mixed
Parameters
$request : Request
$error : string
$errorNumber : int
$info : array<string|int, mixed>

__toString()

public __toString() : string
Return values
string

getErrorNumber()

public getErrorNumber() : int
Return values
int

getInfo()

public getInfo() : array<string|int, mixed>
Attributes
#[ArrayShape]
['appconnect_time_us' => 'int', 'certinfo' => 'array', 'connect_time' => 'float', 'connect_time_us' => 'int', 'content_type' => 'string', 'download_content_length' => 'float', 'effective_method' => 'string', 'filetime' => 'int', 'header_size' => 'int', 'http_code' => 'int', 'http_version' => 'int', 'local_ip' => 'string', 'local_port' => 'int', 'namelookup_time' => 'float', 'namelookup_time_us' => 'int', 'pretransfer_time' => 'float', 'pretransfer_time_us' => 'int', 'primary_ip' => 'string', 'primary_port' => 'int', 'protocol' => 'int', 'redirect_count' => 'int', 'redirect_time' => 'float', 'redirect_time_us' => 'int', 'redirect_url' => 'string', 'request_size' => 'int', 'scheme' => 'string', 'size_download' => 'float', 'size_upload' => 'float', 'speed_download' => 'float', 'speed_upload' => 'float', 'ssl_verify_result' => 'int', 'ssl_verifyresult' => 'int', 'starttransfer_time' => 'float', 'starttransfer_time_us' => 'int', 'total_time' => 'float', 'total_time_us' => 'int', 'upload_content_length' => 'float', 'url' => 'string']
Return values
array<string|int, mixed>

        
On this page

Search results