* Exception for HTTP requests
* Exception for HTTP requests
class Requests_Exception extends Exception {
* Data associated with the 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);
* Like {@see getCode()}, but a string code.
public function getType() {
* Gives any relevant data
public function getData() {