Summery Summery
Create a new exception
Syntax Syntax
Parameters Parameters
- $message
-
(Required) Exception message
- $type
-
(Required) Exception type
- $data
-
(Optional) Associated data
Default value: null
- $code
-
(Required) Exception numerical code, if applicable
Source Source
File: wp-includes/Requests/Exception.php
public function __construct($message, $type, $data = null, $code = 0) { parent::__construct($message, $code); $this->type = $type; $this->data = $data; }