Edit File by line
/home/barbar84/public_h.../wp-inclu.../Requests
File: Exception.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Exception for HTTP requests
[2] Fix | Delete
*
[3] Fix | Delete
* @package Requests
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Exception for HTTP requests
[8] Fix | Delete
*
[9] Fix | Delete
* @package Requests
[10] Fix | Delete
*/
[11] Fix | Delete
class Requests_Exception extends Exception {
[12] Fix | Delete
/**
[13] Fix | Delete
* Type of exception
[14] Fix | Delete
*
[15] Fix | Delete
* @var string
[16] Fix | Delete
*/
[17] Fix | Delete
protected $type;
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Data associated with the exception
[21] Fix | Delete
*
[22] Fix | Delete
* @var mixed
[23] Fix | Delete
*/
[24] Fix | Delete
protected $data;
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Create a new exception
[28] Fix | Delete
*
[29] Fix | Delete
* @param string $message Exception message
[30] Fix | Delete
* @param string $type Exception type
[31] Fix | Delete
* @param mixed $data Associated data
[32] Fix | Delete
* @param integer $code Exception numerical code, if applicable
[33] Fix | Delete
*/
[34] Fix | Delete
public function __construct($message, $type, $data = null, $code = 0) {
[35] Fix | Delete
parent::__construct($message, $code);
[36] Fix | Delete
[37] Fix | Delete
$this->type = $type;
[38] Fix | Delete
$this->data = $data;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* Like {@see getCode()}, but a string code.
[43] Fix | Delete
*
[44] Fix | Delete
* @codeCoverageIgnore
[45] Fix | Delete
* @return string
[46] Fix | Delete
*/
[47] Fix | Delete
public function getType() {
[48] Fix | Delete
return $this->type;
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* Gives any relevant data
[53] Fix | Delete
*
[54] Fix | Delete
* @codeCoverageIgnore
[55] Fix | Delete
* @return mixed
[56] Fix | Delete
*/
[57] Fix | Delete
public function getData() {
[58] Fix | Delete
return $this->data;
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function