PHP 8.1.33
Preview: Exception.php Size: 1.00 KB
/home/jambtst2015/www/wp-includes/Requests/Exception.php

<?php
/**
 * Exception for HTTP requests
 *
 * @package Requests
 */

/**
 * Exception for HTTP requests
 *
 * @package Requests
 */
class Requests_Exception extends Exception {
	/**
	 * 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 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;
	}
}

Directory Contents

Dirs: 7 × Files: 14

Name Size Perms Modified Actions
Auth DIR
- drwxr-xr-x 2025-10-17 10:47:17
Edit Download
Cookie DIR
- drwxr-xr-x 2024-11-22 17:53:11
Edit Download
Exception DIR
- drwxr-xr-x 2025-10-08 21:53:58
Edit Download
Proxy DIR
- drwxr-xr-x 2025-10-11 04:57:01
Edit Download
Response DIR
- drwxr-xr-x 2025-10-11 11:06:13
Edit Download
Transport DIR
- drwxr-xr-x 2025-10-10 23:13:07
Edit Download
Utility DIR
- drwxr-xr-x 2024-11-22 17:53:11
Edit Download
810 B lrw-r--r-- 2024-11-22 17:53:11
Edit Download
12.66 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
5.60 KB lrw-r--r-- 2025-11-03 06:23:01
Edit Download
1.00 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
708 B lrw-r--r-- 2024-11-22 17:53:11
Edit Download
1.47 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
11.06 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
4.81 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
28.35 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
813 B lrw-r--r-- 2024-11-22 17:53:11
Edit Download
2.45 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
7.09 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
3.93 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
1.19 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).