PHP 8.1.33
Preview: Exception.php Size: 1.09 KB
/home/jambtst2015/public_html/www.securiskbrokers.com/wp-includes/Requests/src/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;
	}
}

Directory Contents

Dirs: 7 × Files: 17

Name Size Perms Modified Actions
Auth DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Cookie DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Exception DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Proxy DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Response DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Transport DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
Utility DIR
- drwxr-xr-x 2024-12-09 13:54:37
Edit Download
860 B lrw-r--r-- 2022-12-16 02:32:18
Edit Download
9.12 KB lrw-r--r-- 2023-04-05 17:12:26
Edit Download
652 B lrw-r--r-- 2023-04-05 17:12:26
Edit Download
15.03 KB lrw-r--r-- 2024-03-25 16:23:08
Edit Download
1.09 KB lrw-r--r-- 2022-12-16 02:32:18
Edit Download
709 B lrw-r--r-- 2022-12-16 02:32:18
Edit Download
2.96 KB lrw-r--r-- 2023-10-12 16:34:34
Edit Download
12.14 KB lrw-r--r-- 2023-04-05 17:12:26
Edit Download
5.51 KB lrw-r--r-- 2022-12-16 02:32:18
Edit Download
28.93 KB lrw-r--r-- 2023-10-12 16:34:34
Edit Download
1.47 KB lrw-r--r-- 2022-12-16 02:32:18
Edit Download
867 B lrw-r--r-- 2022-12-16 02:32:18
Edit Download
33.20 KB lrw-r--r-- 2024-03-25 16:23:08
Edit Download
4.18 KB lrw-r--r-- 2023-04-05 17:12:26
Edit Download
8.89 KB lrw-r--r-- 2023-10-12 16:34:34
Edit Download
5.30 KB lrw-r--r-- 2022-12-16 02:32:18
Edit Download
1.51 KB lrw-r--r-- 2022-12-16 02:32:18
Edit Download

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