at path:
ROOT
/
wp-includes
/
Requests
/
src
/
Exception.php
run:
R
W
Run
Auth
DIR
2026-02-05 01:05:21
R
W
Run
Cookie
DIR
2026-02-05 01:05:21
R
W
Run
Exception
DIR
2026-02-05 01:05:21
R
W
Run
Proxy
DIR
2026-02-05 01:05:21
R
W
Run
Response
DIR
2026-02-05 01:05:21
R
W
Run
Transport
DIR
2026-02-05 01:05:21
R
W
Run
Utility
DIR
2026-02-05 01:05:21
R
W
Run
Auth.php
860 By
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Autoload.php
9.12 KB
2023-08-09 06:18:38
R
W
Run
Delete
Rename
Capability.php
652 By
2023-08-09 06:18:38
R
W
Run
Delete
Rename
Cookie.php
15.03 KB
2024-07-16 18:09:31
R
W
Run
Delete
Rename
Exception.php
1.09 KB
2023-03-29 18:51:45
R
W
Run
Delete
Rename
HookManager.php
709 By
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Hooks.php
2.96 KB
2023-10-13 06:05:33
R
W
Run
Delete
Rename
IdnaEncoder.php
12.14 KB
2023-08-09 06:18:38
R
W
Run
Delete
Rename
Ipv6.php
5.51 KB
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Iri.php
28.93 KB
2023-10-13 06:05:33
R
W
Run
Delete
Rename
Port.php
1.47 KB
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Proxy.php
867 By
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Requests.php
33.2 KB
2024-07-16 18:09:31
R
W
Run
Delete
Rename
Response.php
4.18 KB
2023-08-09 06:18:38
R
W
Run
Delete
Rename
Session.php
8.89 KB
2023-10-13 06:05:33
R
W
Run
Delete
Rename
Ssl.php
5.3 KB
2023-03-29 18:51:45
R
W
Run
Delete
Rename
Transport.php
1.51 KB
2023-03-29 18:51:45
R
W
Run
Delete
Rename
error_log
109.31 KB
2026-02-10 09:24:56
R
W
Run
Delete
Rename
error_log
up
📄
Exception.php
Save
<?php /** * Exception for HTTP requests * * @package Requests\Exceptions */ namespace WpOrg\Requests; use Exception as PHPException; /** * Exception for HTTP requests * * @package Requests\Exceptions */ class Exception extends PHPException { /** * Type of exception * * @var string */ protected $type; /** * Data associated with the exception * * @var mixed */ protected $data; /** * Create a new exception * * @param string $message Exception message * @param string $type Exception type * @param mixed $data Associated data * @param integer $code Exception numerical code, if applicable */ public function __construct($message, $type, $data = null, $code = 0) { parent::__construct($message, $code); $this->type = $type; $this->data = $data; } /** * Like {@see \Exception::getCode()}, but a string code. * * @codeCoverageIgnore * @return string */ public function getType() { return $this->type; } /** * Gives any relevant data * * @codeCoverageIgnore * @return mixed */ public function getData() { return $this->data; } }