Requests_Exception::__construct()

最后更新于:2021-11-26 02:35:20

Requests_Exception::__construct( string$message, string$type, mixed$data=null, integer$code)

Create a new exception

参数

$message

(string) (Required) Exception message

$type

(string) (Required) Exception type

$data

(mixed) (Optional) Associated data

Default value: null

$code

(integer) (Required) Exception numerical code, if applicable

源文件

文件: gc-includes/Requests/Exception.php

	public function __construct($message, $type, $data = null, $code = 0) {
		parent::__construct($message, $code);

		$this->type = $type;
		$this->data = $data;
	}