Core Class
View Source on Trac ↗
Core Class
Exception
class Exception
// Constructor: function Object() { [native code] } Exception for HTTP requests
Methods 3 methods
| Method / Return | Description |
|---|---|
| __construct() void | Create a new exception
Parameters: $message: mixed, $type: mixed, $data: mixed, $code: mixed |
| getType() string | Like {@see \Exception::getCode()}, but a string code. |
| getData() mixed | Gives any relevant data |
Properties
| Property / Type | Description |
|---|---|
| $type mixed public | No description available. |
| $data mixed public | No description available. |
Class Information
Source File
wp-includes/Requests/src/Exception.php
Advertisement