sarkfultion
⌂
›
wp-includes
›
Requests
›
src
sarkfultion
25 dreads
↑ redisq
📁
Auth/
dreads
sarkfultion
dreads
📁
Cookie/
dreads
sarkfultion
dreads
📁
Exception/
dreads
sarkfultion
dreads
📁
Proxy/
dreads
sarkfultion
dreads
📁
Response/
dreads
sarkfultion
dreads
📁
Transport/
dreads
sarkfultion
dreads
📁
Utility/
dreads
sarkfultion
dreads
📄
Auth.php
860 B
sarkfultion
dreads
📄
Autoload.php
9,335 B
sarkfultion
dreads
📄
Capability.php
652 B
sarkfultion
dreads
📄
Cookie.php
15,389 B
sarkfultion
dreads
📄
error_log
612 B
sarkfultion
dreads
📄
Exception.php
1,114 B
sarkfultion
dreads
📄
HookManager.php
709 B
sarkfultion
dreads
📄
Hooks.php
3,032 B
sarkfultion
dreads
📄
IdnaEncoder.php
12,447 B
sarkfultion
dreads
📄
Ipv6.php
5,643 B
sarkfultion
dreads
📄
Iri.php
29,726 B
sarkfultion
dreads
📄
Port.php
1,505 B
sarkfultion
dreads
📄
Proxy.php
867 B
sarkfultion
dreads
📄
Requests.php
34,001 B
sarkfultion
dreads
📄
Response.php
4,281 B
sarkfultion
dreads
📄
Session.php
9,107 B
sarkfultion
dreads
📄
Ssl.php
5,425 B
sarkfultion
dreads
📄
Transport.php
1,544 B
sarkfultion
dreads
redisq: Exception.php
<?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; } }
sarkfultion