Requests_Exception_()
最后更新于:2021-11-26 02:49:19
Requests_Exception_( string|null$reason=null, mixed$data=null)Create a new exception
参数
- $reason
-
(string|null) (Optional) Reason phrase
Default value: null
- $data
-
(mixed) (Optional) Associated data
Default value: null
源文件
文件: gc-includes/Requests/Exception/HTTP/Unknown.php
public function __construct($reason = null, $data = null) {
if ($data instanceof Requests_Response) {
$this->code = $data->status_code;
}
parent::__construct($reason, $data);
}