<?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;
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Auth/ | 2026-02-23 19:41 | 2.48 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Cookie/ | 2026-02-23 19:41 | 4.26 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Exception/ | 2026-02-23 19:41 | 21.94 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Proxy/ | 2026-02-23 19:41 | 4.12 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Response/ | 2026-02-23 19:41 | 3.04 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Transport/ | 2026-02-23 19:41 | 35.11 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Utility/ | 2026-02-23 19:41 | 7.17 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Auth.php | 2026-02-23 19:41 | 860 B | 76129f60960:kunden | -xw-x----- | |
| Autoload.php | 2026-02-23 19:41 | 9.12 KB | 76129f60960:kunden | -xw-x----- | |
| Capability.php | 2026-02-23 19:41 | 652 B | 76129f60960:kunden | -xw-x----- | |
| Cookie.php | 2026-02-23 19:41 | 15.03 KB | 76129f60960:kunden | -xw-x----- | |
| Exception.php | 2026-02-23 19:41 | 1.09 KB | 76129f60960:kunden | -xw-x----- | |
| HookManager.php | 2026-02-23 19:41 | 709 B | 76129f60960:kunden | -xw-x----- | |
| Hooks.php | 2026-02-23 19:41 | 2.96 KB | 76129f60960:kunden | -xw-x----- | |
| IdnaEncoder.php | 2026-05-21 09:11 | 12.16 KB | 76129f60960:kunden | -xw-x--x-- | |
| Ipv6.php | 2026-05-21 09:11 | 5.51 KB | 76129f60960:kunden | -xw-x--x-- | |
| Iri.php | 2026-05-21 09:11 | 29.03 KB | 76129f60960:kunden | -xw-x--x-- | |
| Port.php | 2026-02-23 19:41 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |
| Proxy.php | 2026-02-23 19:41 | 867 B | 76129f60960:kunden | -xw-x----- | |
| Requests.php | 2026-05-21 09:11 | 33.2 KB | 76129f60960:kunden | -xw-x--x-- | |
| Response.php | 2026-02-23 19:41 | 4.18 KB | 76129f60960:kunden | -xw-x----- | |
| Session.php | 2026-02-23 19:41 | 8.89 KB | 76129f60960:kunden | -xw-x----- | |
| Ssl.php | 2026-02-23 19:41 | 5.3 KB | 76129f60960:kunden | -xw-x----- | |
| Transport.php | 2026-02-23 19:41 | 1.51 KB | 76129f60960:kunden | -xw-x----- | |