Requests_Exception_HTTP_Unknown::__construct( string|null $reason = null, mixed $data = null )

In this article

Create a new exception

Description

If $data is an instance of Requests_Response, uses the status code from it. Otherwise, sets as 0

Parameters

$reasonstring|nulloptional
Reason phrase

Default:null

$datamixedoptional
Associated data

Default:null

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.